home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Mops 2.5 / Mops source.sit / Mops source / More classes / Multitasking < prev    next >
MacBinary  |  1992-10-29  |  16.5 KB  |  [TEXT/NISI]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Multitasking

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Oct 29 04:02:18 1992, modified Thu Oct 29 04:02:18 1992, creator 'NISI', type ASCII, 12829 bytes "Multitasking" , at 0x329d 3714 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[NISI]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0c 4d 75 6c 74 69 74 | 61 73 6b 69 6e 67 00 00 |..Multit|asking..|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4e 49 53 | 49 01 00 00 00 00 00 00 |.TEXTNIS|I.......|
|00000050| 00 00 00 00 00 32 1d 00 | 00 0e 82 a7 15 59 1a a7 |.....2..|.....Y..|
|00000060| 15 59 1a 00 00 06 00 00 | 00 00 00 00 00 00 00 00 |.Y......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a6 6b 00 00 |........|.....k..|
|00000080| 5c 20 4d 75 6c 74 69 74 | 61 73 6b 69 6e 67 2e 20 |\ Multit|asking. |
|00000090| 20 41 70 72 69 6c 20 38 | 38 2e 0d 0d 5c 20 46 65 | April 8|8...\ Fe|
|000000a0| 62 20 39 30 20 2d 20 4d | 20 73 74 61 63 6b 20 72 |b 90 - M| stack r|
|000000b0| 65 66 73 20 72 65 6d 6f | 76 65 64 20 66 6f 72 20 |efs remo|ved for |
|000000c0| 4d 6f 70 73 20 31 2e 32 | 2e 0d 0d 5c 20 4f 6e 65 |Mops 1.2|...\ One|
|000000d0| 20 6f 66 20 74 68 65 20 | 62 65 61 75 74 69 65 73 | of the |beauties|
|000000e0| 20 6f 66 20 61 20 46 6f | 72 74 68 2d 62 61 73 65 | of a Fo|rth-base|
|000000f0| 64 20 73 79 73 74 65 6d | 20 69 73 20 74 68 61 74 |d system| is that|
|00000100| 20 69 74 20 69 73 20 65 | 61 73 79 20 74 6f 20 69 | it is e|asy to i|
|00000110| 6d 70 6c 65 6d 65 6e 74 | 20 6d 75 6c 74 69 74 61 |mplement| multita|
|00000120| 73 6b 69 6e 67 2e 20 20 | 54 68 69 73 20 61 6c 6c |sking. |This all|
|00000130| 6f 77 73 20 75 73 20 74 | 6f 20 64 6f 20 69 6e 74 |ows us t|o do int|
|00000140| 65 72 65 73 74 69 6e 67 | 20 74 68 69 6e 67 73 20 |eresting| things |
|00000150| 6c 69 6b 65 20 63 6f 6e | 74 69 6e 75 65 20 70 72 |like con|tinue pr|
|00000160| 6f 63 65 73 73 69 6e 67 | 20 77 68 69 6c 65 20 61 |ocessing| while a|
|00000170| 20 77 69 6e 64 6f 77 20 | 69 73 20 62 65 69 6e 67 | window |is being|
|00000180| 20 64 72 61 67 67 65 64 | 20 65 74 63 2e 20 20 4d | dragged| etc. M|
|00000190| 6f 73 74 20 4d 61 63 20 | 61 70 70 6c 69 63 61 74 |ost Mac |applicat|
|000001a0| 69 6f 6e 73 20 63 61 6e | 27 74 20 6d 61 6e 61 67 |ions can|'t manag|
|000001b0| 65 20 74 68 69 73 2e 20 | 20 49 74 20 6d 61 6b 65 |e this. | It make|
|000001c0| 73 20 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f |s our ap|plicatio|
|000001d0| 6e 73 20 6c 6f 6f 6b 20 | 75 6e 62 65 6c 69 65 76 |ns look |unbeliev|
|000001e0| 61 62 6c 79 20 73 6f 70 | 68 69 73 74 69 63 61 74 |ably sop|histicat|
|000001f0| 65 64 2c 20 61 6e 64 20 | 79 65 74 20 74 68 69 73 |ed, and |yet this|
|00000200| 20 63 6f 64 65 20 69 73 | 20 6f 6e 6c 79 20 61 62 | code is| only ab|
|00000210| 6f 75 74 20 32 35 30 30 | 20 62 79 74 65 73 2e 20 |out 2500| bytes. |
|00000220| 20 54 68 69 73 20 69 73 | 20 70 6f 73 73 69 62 6c | This is| possibl|
|00000230| 65 20 62 65 63 61 75 73 | 65 20 74 68 65 20 46 6f |e becaus|e the Fo|
|00000240| 72 74 68 20 61 70 70 72 | 6f 61 63 68 20 74 6f 20 |rth appr|oach to |
|00000250| 6d 75 6c 74 69 74 61 73 | 6b 69 6e 67 2c 20 61 73 |multitas|king, as|
|00000260| 20 75 73 75 61 6c 2c 20 | 73 69 6d 70 6c 69 66 69 | usual, |simplifi|
|00000270| 65 73 20 74 68 69 6e 67 | 73 20 63 6f 6e 73 69 64 |es thing|s consid|
|00000280| 65 72 61 62 6c 79 20 63 | 6f 6d 70 61 72 65 64 20 |erably c|ompared |
|00000290| 77 69 74 68 20 6f 74 68 | 65 72 20 73 79 73 74 65 |with oth|er syste|
|000002a0| 6d 73 2e 0d 0d 5c 20 54 | 68 65 20 6d 61 69 6e 20 |ms...\ T|he main |
|000002b0| 73 69 6d 70 6c 69 66 79 | 69 6e 67 20 66 61 63 74 |simplify|ing fact|
|000002c0| 6f 72 20 69 73 20 74 68 | 61 74 20 74 68 65 20 73 |or is th|at the s|
|000002d0| 63 68 65 6d 65 20 69 73 | 20 63 6f 6f 70 65 72 61 |cheme is| coopera|
|000002e0| 74 69 76 65 2e 20 20 54 | 61 73 6b 73 20 63 61 6e |tive. T|asks can|
|000002f0| 6e 6f 74 20 62 65 20 69 | 6e 74 65 72 72 75 70 74 |not be i|nterrupt|
|00000300| 65 64 20 61 74 20 61 6e | 79 20 61 72 62 69 74 72 |ed at an|y arbitr|
|00000310| 61 72 79 20 70 6f 69 6e | 74 2c 20 62 75 74 20 6d |ary poin|t, but m|
|00000320| 75 73 74 20 65 78 65 63 | 75 74 65 20 50 41 55 53 |ust exec|ute PAUS|
|00000330| 45 20 74 6f 20 61 6c 6c | 6f 77 20 6f 74 68 65 72 |E to all|ow other|
|00000340| 20 74 61 73 6b 73 20 74 | 6f 20 68 61 76 65 20 61 | tasks t|o have a|
|00000350| 20 74 75 72 6e 2e 20 20 | 54 68 69 73 20 61 6c 6c | turn. |This all|
|00000360| 6f 77 73 20 74 68 65 20 | 6f 76 65 72 68 65 61 64 |ows the |overhead|
|00000370| 20 66 6f 72 20 73 77 69 | 74 63 68 69 6e 67 20 74 | for swi|tching t|
|00000380| 61 73 6b 73 20 74 6f 20 | 62 65 20 6a 75 73 74 20 |asks to |be just |
|00000390| 61 62 6f 75 74 20 32 30 | 20 6d 61 63 68 69 6e 65 |about 20| machine|
|000003a0| 20 69 6e 73 74 72 75 63 | 74 69 6f 6e 73 2e 0d 0d | instruc|tions...|
|000003b0| 5c 20 54 68 69 73 20 63 | 6f 64 65 20 69 73 20 62 |\ This c|ode is b|
|000003c0| 61 73 65 64 20 6f 6e 20 | 74 68 61 74 20 69 6e 20 |ased on |that in |
|000003d0| 74 68 65 20 4c 61 78 65 | 6e 2f 50 65 72 72 79 20 |the Laxe|n/Perry |
|000003e0| 46 38 33 2c 20 69 6e 63 | 6c 75 64 69 6e 67 20 74 |F83, inc|luding t|
|000003f0| 68 65 20 65 78 74 72 61 | 20 66 65 61 74 75 72 65 |he extra| feature|
|00000400| 73 20 61 64 64 65 64 20 | 62 79 20 79 6f 75 72 73 |s added |by yours|
|00000410| 20 74 72 75 6c 79 20 69 | 6e 20 74 68 65 20 50 44 | truly i|n the PD|
|00000420| 50 2d 31 31 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 |P-11 imp|lementat|
|00000430| 69 6f 6e 2c 20 6e 6f 74 | 61 62 6c 79 20 74 68 65 |ion, not|ably the|
|00000440| 20 6d 65 63 68 61 6e 69 | 73 6d 20 74 6f 20 6b 65 | mechani|sm to ke|
|00000450| 65 70 20 74 72 61 63 6b | 20 6f 66 20 74 68 65 20 |ep track| of the |
|00000460| 73 74 61 74 75 73 20 6f | 66 20 61 20 74 61 73 6b |status o|f a task|
|00000470| 2e 20 20 57 65 20 6d 61 | 6b 65 20 73 6f 6d 65 20 |. We ma|ke some |
|00000480| 6e 65 63 65 73 73 61 72 | 79 20 4d 61 63 20 61 6e |necessar|y Mac an|
|00000490| 64 20 4d 6f 70 73 20 61 | 64 61 70 74 61 74 69 6f |d Mops a|daptatio|
|000004a0| 6e 73 20 68 65 72 65 20 | 2d 20 69 6e 20 70 61 72 |ns here |- in par|
|000004b0| 74 69 63 75 6c 61 72 2c | 20 61 20 74 61 73 6b 20 |ticular,| a task |
|000004c0| 62 65 63 6f 6d 65 73 20 | 61 20 4d 6f 70 73 20 6f |becomes |a Mops o|
|000004d0| 62 6a 65 63 74 2c 20 61 | 6e 64 20 77 65 20 73 65 |bject, a|nd we se|
|000004e0| 74 20 74 68 65 20 76 61 | 72 69 6f 75 73 20 75 73 |t the va|rious us|
|000004f0| 65 72 20 68 6f 6f 6b 20 | 6c 6f 63 61 74 69 6f 6e |er hook |location|
|00000500| 73 20 28 65 2e 67 2e 20 | 44 72 61 67 48 6f 6f 6b |s (e.g. |DragHook|
|00000510| 29 20 74 6f 20 70 6f 69 | 6e 74 20 74 6f 20 61 20 |) to poi|nt to a |
|00000520| 72 6f 75 74 69 6e 65 20 | 74 6f 20 72 75 6e 20 74 |routine |to run t|
|00000530| 68 65 20 74 61 73 6b 20 | 72 6f 75 6e 64 2d 72 6f |he task |round-ro|
|00000540| 62 69 6e 2e 20 20 41 6e | 6f 74 68 65 72 20 61 64 |bin. An|other ad|
|00000550| 64 69 74 69 6f 6e 20 69 | 73 20 74 68 61 74 20 65 |dition i|s that e|
|00000560| 61 63 68 20 74 61 73 6b | 20 68 61 73 20 61 20 71 |ach task| has a q|
|00000570| 75 65 75 65 20 6f 66 20 | 74 61 73 6b 73 20 77 61 |ueue of |tasks wa|
|00000580| 69 74 69 6e 67 20 6f 6e | 20 69 74 2e 20 20 54 68 |iting on| it. Th|
|00000590| 69 73 20 61 76 6f 69 64 | 73 20 61 20 77 61 69 74 |is avoid|s a wait|
|000005a0| 69 6e 67 20 74 61 73 6b | 20 68 61 76 69 6e 67 20 |ing task| having |
|000005b0| 74 6f 20 77 61 73 74 65 | 20 74 69 6d 65 20 74 65 |to waste| time te|
|000005c0| 73 74 69 6e 67 20 74 68 | 65 20 6f 74 68 65 72 20 |sting th|e other |
|000005d0| 74 61 73 6b 20 65 61 63 | 68 20 74 69 6d 65 20 72 |task eac|h time r|
|000005e0| 6f 75 6e 64 2e 20 20 41 | 20 77 61 69 74 69 6e 67 |ound. A| waiting|
|000005f0| 20 74 61 73 6b 20 63 61 | 6e 20 6e 6f 77 20 62 65 | task ca|n now be|
|00000600| 20 70 75 74 20 74 6f 20 | 73 6c 65 65 70 2c 20 61 | put to |sleep, a|
|00000610| 6e 64 20 74 68 65 20 74 | 69 6d 65 20 70 65 6e 61 |nd the t|ime pena|
|00000620| 6c 74 79 20 66 6f 72 20 | 65 61 63 68 20 77 61 69 |lty for |each wai|
|00000630| 74 69 6e 67 20 74 61 73 | 6b 20 69 73 20 72 65 64 |ting tas|k is red|
|00000640| 75 63 65 64 20 74 6f 20 | 6f 6e 65 20 6d 61 63 68 |uced to |one mach|
|00000650| 69 6e 65 20 4a 4d 50 20 | 69 6e 73 74 72 75 63 74 |ine JMP |instruct|
|00000660| 69 6f 6e 20 65 61 63 68 | 20 74 69 6d 65 20 72 6f |ion each| time ro|
|00000670| 75 6e 64 20 74 68 65 20 | 74 61 73 6b 20 6c 6f 6f |und the |task loo|
|00000680| 70 2e 20 49 66 20 69 74 | 20 77 61 73 20 77 6f 72 |p. If it| was wor|
|00000690| 74 68 20 69 74 2c 20 77 | 65 20 63 6f 75 6c 64 20 |th it, w|e could |
|000006a0| 65 76 65 6e 20 72 65 6d | 6f 76 65 20 74 68 65 20 |even rem|ove the |
|000006b0| 74 61 73 6b 20 66 72 6f | 6d 20 74 68 65 20 6c 6f |task fro|m the lo|
|000006c0| 6f 70 20 61 6c 74 6f 67 | 65 74 68 65 72 2c 20 62 |op altog|ether, b|
|000006d0| 75 74 20 69 74 20 70 72 | 6f 62 61 62 6c 79 20 69 |ut it pr|obably i|
|000006e0| 73 6e 27 74 20 77 6f 72 | 74 68 20 69 74 2e 0d 0d |sn't wor|th it...|
|000006f0| 5c 20 41 6e 6f 74 68 65 | 72 20 6e 65 63 65 73 73 |\ Anothe|r necess|
|00000700| 61 72 79 20 4d 61 63 20 | 61 64 6a 75 73 74 6d 65 |ary Mac |adjustme|
|00000710| 6e 74 20 69 73 20 74 68 | 61 74 20 77 65 20 6d 75 |nt is th|at we mu|
|00000720| 73 74 20 64 69 73 74 69 | 6e 67 75 69 73 68 20 62 |st disti|nguish b|
|00000730| 65 74 77 65 65 6e 20 61 | 20 66 6f 72 65 67 72 6f |etween a| foregro|
|00000740| 75 6e 64 20 74 61 73 6b | 20 61 6e 64 20 76 61 72 |und task| and var|
|00000750| 69 6f 75 73 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 |ious bac|kground |
|00000760| 74 61 73 6b 73 2e 20 20 | 41 6e 79 20 74 69 6d 65 |tasks. |Any time|
|00000770| 20 57 61 69 74 4e 65 78 | 74 45 76 65 6e 74 20 69 | WaitNex|tEvent i|
|00000780| 73 20 63 61 6c 6c 65 64 | 2c 20 61 6c 6c 20 6b 69 |s called|, all ki|
|00000790| 6e 64 73 20 6f 66 20 74 | 68 69 6e 67 73 20 63 61 |nds of t|hings ca|
|000007a0| 6e 20 68 61 70 70 65 6e | 20 77 68 69 63 68 20 63 |n happen| which c|
|000007b0| 61 6e 20 75 73 65 20 73 | 65 76 65 72 61 6c 20 4b |an use s|everal K|
|000007c0| 20 6f 66 20 73 74 61 63 | 6b 20 73 70 61 63 65 2e | of stac|k space.|
|000007d0| 20 20 54 68 65 72 65 66 | 6f 72 65 20 77 65 20 61 | Theref|ore we a|
|000007e0| 73 73 75 6d 65 20 69 6e | 20 61 6c 6c 6f 63 61 74 |ssume in| allocat|
|000007f0| 69 6e 67 20 74 68 69 73 | 20 73 70 61 63 65 20 74 |ing this| space t|
|00000800| 68 61 74 20 57 4e 45 20 | 77 69 6c 6c 20 6f 6e 6c |hat WNE |will onl|
|00000810| 79 20 62 65 20 63 61 6c | 6c 65 64 20 66 72 6f 6d |y be cal|led from|
|00000820| 20 74 68 65 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 | the for|eground |
|00000830| 74 61 73 6b 2c 20 61 6e | 64 20 77 65 20 64 6f 6e |task, an|d we don|
|00000840| 27 74 20 6e 65 65 64 20 | 74 6f 20 61 6c 6c 6f 63 |'t need |to alloc|
|00000850| 61 74 65 20 61 73 20 6d | 75 63 68 20 73 74 61 63 |ate as m|uch stac|
|00000860| 6b 20 73 70 61 63 65 20 | 66 6f 72 20 62 61 63 6b |k space |for back|
|00000870| 67 72 6f 75 6e 64 20 74 | 61 73 6b 73 2e 20 20 41 |ground t|asks. A|
|00000880| 6c 73 6f 2c 20 74 68 65 | 20 68 6f 6f 6b 20 70 72 |lso, the| hook pr|
|00000890| 6f 63 65 64 75 72 65 73 | 20 6d 75 73 74 20 62 65 |ocedures| must be|
|000008a0| 20 61 62 6c 65 20 74 6f | 20 65 6e 73 75 72 65 20 | able to| ensure |
|000008b0| 74 68 61 74 20 57 4e 45 | 20 77 69 6c 6c 20 6e 6f |that WNE| will no|
|000008c0| 74 20 62 65 20 63 61 6c | 6c 65 64 20 64 75 72 69 |t be cal|led duri|
|000008d0| 6e 67 20 74 68 65 69 72 | 20 65 78 65 63 75 74 69 |ng their| executi|
|000008e0| 6f 6e 20 28 76 65 72 79 | 20 69 6c 6c 65 67 61 6c |on (very| illegal|
|000008f0| 29 2e 20 20 49 66 20 77 | 65 20 63 61 6c 6c 20 57 |). If w|e call W|
|00000900| 4e 45 20 6f 6e 6c 79 20 | 66 72 6f 6d 20 74 68 65 |NE only |from the|
|00000910| 20 66 6f 72 65 67 72 6f | 75 6e 64 20 74 61 73 6b | foregro|und task|
|00000920| 2c 20 74 68 65 72 65 27 | 73 20 6e 6f 20 70 72 6f |, there'|s no pro|
|00000930| 62 6c 65 6d 2e 20 20 54 | 68 65 20 68 6f 6f 6b 20 |blem. T|he hook |
|00000940| 70 72 6f 63 65 64 75 72 | 65 73 20 74 68 65 6e 20 |procedur|es then |
|00000950| 61 6c 77 61 79 73 20 65 | 78 65 63 75 74 65 20 61 |always e|xecute a|
|00000960| 73 20 70 61 72 74 20 6f | 66 20 74 68 65 20 66 6f |s part o|f the fo|
|00000970| 72 65 67 72 6f 75 6e 64 | 20 74 61 73 6b 20 28 74 |reground| task (t|
|00000980| 68 65 79 27 72 65 20 63 | 61 6c 6c 65 64 20 62 79 |hey're c|alled by|
|00000990| 20 74 68 65 20 73 79 73 | 74 65 6d 20 61 74 20 57 | the sys|tem at W|
|000009a0| 4e 45 20 74 69 6d 65 29 | 2c 20 61 6e 64 20 65 76 |NE time)|, and ev|
|000009b0| 65 6e 20 69 66 20 74 68 | 65 79 20 67 69 76 65 20 |en if th|ey give |
|000009c0| 62 61 63 6b 67 72 6f 75 | 6e 64 20 74 61 73 6b 73 |backgrou|nd tasks|
|000009d0| 20 73 6f 6d 65 20 74 69 | 6d 65 20 62 65 66 6f 72 | some ti|me befor|
|000009e0| 65 20 74 68 65 79 20 72 | 65 74 75 72 6e 2c 20 74 |e they r|eturn, t|
|000009f0| 68 65 73 65 20 62 61 63 | 6b 67 72 6f 75 6e 64 20 |hese bac|kground |
|00000a00| 74 61 73 6b 73 20 77 6f | 6e 27 74 20 62 65 20 63 |tasks wo|n't be c|
|00000a10| 61 6c 6c 69 6e 67 20 57 | 4e 45 2e 0d 0d 5c 20 41 |alling W|NE...\ A|
|00000a20| 6e 6f 74 68 65 72 20 74 | 68 69 6e 67 20 74 6f 20 |nother t|hing to |
|00000a30| 77 61 74 63 68 20 69 73 | 20 74 68 61 74 20 61 20 |watch is| that a |
|00000a40| 62 61 63 6b 67 72 6f 75 | 6e 64 20 74 61 73 6b 20 |backgrou|nd task |
|00000a50| 73 68 6f 75 6c 64 6e 27 | 74 20 64 6f 20 61 6e 79 |shouldn'|t do any|
|00000a60| 20 64 72 61 77 69 6e 67 | 20 74 6f 20 74 68 65 20 | drawing| to the |
|00000a70| 73 63 72 65 65 6e 20 20 | 4e 6f 74 20 6f 6e 6c 79 |screen |Not only|
|00000a80| 20 64 6f 65 73 6e 27 74 | 20 69 74 20 6b 6e 6f 77 | doesn't| it know|
|00000a90| 20 77 68 69 63 68 20 47 | 72 61 66 50 6f 72 74 20 | which G|rafPort |
|00000aa0| 69 73 20 73 77 69 74 63 | 68 65 64 20 69 6e 2c 20 |is switc|hed in, |
|00000ab0| 49 20 68 61 76 65 20 61 | 6c 73 6f 20 66 6f 75 6e |I have a|lso foun|
|00000ac0| 64 20 51 75 69 63 6b 44 | 72 61 77 20 64 6f 69 6e |d QuickD|raw doin|
|00000ad0| 67 20 73 6f 6d 65 20 73 | 74 72 61 6e 67 65 20 74 |g some s|trange t|
|00000ae0| 68 69 6e 67 73 20 69 6e | 20 74 68 65 20 22 75 6e |hings in| the "un|
|00000af0| 75 73 65 64 22 20 61 72 | 65 61 20 6f 66 20 74 68 |used" ar|ea of th|
|00000b00| 65 20 73 74 61 63 6b 20 | 62 65 74 77 65 65 6e 20 |e stack |between |
|00000b10| 42 75 66 50 74 72 20 61 | 6e 64 20 74 68 65 20 63 |BufPtr a|nd the c|
|00000b20| 75 72 72 65 6e 74 20 41 | 37 20 73 74 61 63 6b 20 |urrent A|7 stack |
|00000b30| 70 6f 69 6e 74 65 72 21 | 21 20 20 57 65 20 74 68 |pointer!|! We th|
|00000b40| 65 72 65 66 6f 72 65 20 | 6e 6f 77 20 70 75 74 20 |erefore |now put |
|00000b50| 74 68 65 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 73 |the fore|ground s|
|00000b60| 74 61 63 6b 20 4c 4f 57 | 45 53 54 20 69 6e 20 6d |tack LOW|EST in m|
|00000b70| 65 6d 6f 72 79 20 2d 20 | 74 68 69 73 20 6e 65 63 |emory - |this nec|
|00000b80| 65 73 73 69 74 61 74 65 | 73 20 6d 6f 76 69 6e 67 |essitate|s moving|
|00000b90| 20 74 68 65 20 73 74 61 | 63 6b 20 77 68 65 6e 20 | the sta|ck when |
|00000ba0| 61 20 62 61 63 6b 67 72 | 6f 75 6e 64 20 74 61 73 |a backgr|ound tas|
|00000bb0| 6b 20 69 73 20 61 6c 6c | 6f 63 61 74 65 64 2c 20 |k is all|ocated, |
|00000bc0| 62 75 74 20 61 74 20 6c | 65 61 73 74 20 69 74 20 |but at l|east it |
|00000bd0| 61 76 6f 69 64 73 20 61 | 6e 79 20 70 72 6f 62 6c |avoids a|ny probl|
|00000be0| 65 6d 73 20 77 69 74 68 | 20 51 75 69 63 6b 44 72 |ems with| QuickDr|
|00000bf0| 61 77 2c 20 73 69 6e 63 | 65 2c 20 61 73 73 75 6d |aw, sinc|e, assum|
|00000c00| 69 6e 67 20 51 75 69 63 | 6b 44 72 61 77 20 63 61 |ing Quic|kDraw ca|
|00000c10| 6c 6c 73 20 6f 6e 6c 79 | 20 72 65 73 75 6c 74 20 |lls only| result |
|00000c20| 66 72 6f 6d 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 |from for|eground |
|00000c30| 74 61 73 6b 73 2c 20 74 | 68 65 20 73 74 61 63 6b |tasks, t|he stack|
|00000c40| 20 70 6f 69 6e 74 65 72 | 20 61 74 20 73 79 73 74 | pointer| at syst|
|00000c50| 65 6d 20 63 61 6c 6c 20 | 74 69 6d 65 20 77 69 6c |em call |time wil|
|00000c60| 6c 20 72 65 61 6c 6c 79 | 20 72 65 70 72 65 73 65 |l really| represe|
|00000c70| 6e 74 20 74 68 65 20 6c | 6f 77 65 73 74 20 61 64 |nt the l|owest ad|
|00000c80| 64 72 65 73 73 20 77 65 | 20 6e 65 65 64 20 66 6f |dress we| need fo|
|00000c90| 72 20 61 6e 79 20 6f 66 | 20 6f 75 72 20 73 74 61 |r any of| our sta|
|00000ca0| 63 6b 73 2e 00 0d 0d 5c | 20 4f 75 72 20 67 65 6e |cks....\| Our gen|
|00000cb0| 65 72 61 6c 20 70 68 69 | 6c 6f 73 6f 70 68 79 2c |eral phi|losophy,|
|00000cc0| 20 74 68 65 6e 2c 20 69 | 73 20 74 68 61 74 20 74 | then, i|s that t|
|00000cd0| 68 65 20 66 6f 72 65 67 | 72 6f 75 6e 64 20 74 61 |he foreg|round ta|
|00000ce0| 73 6b 20 77 69 6c 6c 20 | 6c 6f 6f 6b 20 61 66 74 |sk will |look aft|
|00000cf0| 65 72 20 74 68 65 20 75 | 73 65 72 20 69 6e 74 65 |er the u|ser inte|
|00000d00| 72 66 61 63 65 2c 20 64 | 6f 20 61 6c 6c 20 64 72 |rface, d|o all dr|
|00000d10| 61 77 69 6e 67 20 74 6f | 20 74 68 65 20 73 63 72 |awing to| the scr|
|00000d20| 65 65 6e 2c 20 61 6e 64 | 20 6d 61 6e 61 67 65 20 |een, and| manage |
|00000d30| 74 68 65 20 65 76 65 6e | 74 20 6c 6f 6f 70 2e 20 |the even|t loop. |
|00000d40| 20 49 74 20 77 69 6c 6c | 20 64 65 6c 65 67 61 74 | It will| delegat|
|00000d50| 65 20 61 6e 79 20 6c 65 | 6e 67 74 68 79 20 63 6f |e any le|ngthy co|
|00000d60| 6d 70 75 74 61 74 69 6f | 6e 20 74 6f 20 62 61 63 |mputatio|n to bac|
|00000d70| 6b 67 72 6f 75 6e 64 20 | 74 61 73 6b 73 2c 20 77 |kground |tasks, w|
|00000d80| 68 69 63 68 20 74 68 65 | 72 65 66 6f 72 65 20 6a |hich the|refore j|
|00000d90| 75 73 74 20 66 75 6e 63 | 74 69 6f 6e 20 61 73 20 |ust func|tion as |
|00000da0| 63 6f 6d 70 75 74 69 6e | 67 20 65 6e 67 69 6e 65 |computin|g engine|
|00000db0| 73 20 66 6f 72 20 74 68 | 65 20 66 6f 72 65 67 72 |s for th|e foregr|
|00000dc0| 6f 75 6e 64 2e 0d 0d 5c | 20 54 68 69 6e 67 73 20 |ound...\| Things |
|00000dd0| 77 6f 75 6c 64 20 68 61 | 76 65 20 62 65 65 6e 20 |would ha|ve been |
|00000de0| 61 20 6c 6f 74 20 65 61 | 73 69 65 72 20 69 66 20 |a lot ea|sier if |
|00000df0| 77 65 20 63 6f 75 6c 64 | 20 68 61 76 65 20 61 6c |we could| have al|
|00000e00| 6c 6f 63 61 74 65 64 20 | 61 20 68 65 61 70 20 62 |located |a heap b|
|00000e10| 6c 6f 63 6b 20 66 6f 72 | 20 65 61 63 68 20 62 61 |lock for| each ba|
|00000e20| 63 6b 67 72 6f 75 6e 64 | 20 74 61 73 6b 27 73 20 |ckground| task's |
|00000e30| 73 74 61 63 6b 2e 20 20 | 42 75 74 20 74 68 65 6e |stack. |But then|
|00000e40| 20 77 65 20 77 6f 75 6c | 64 20 67 65 74 20 63 61 | we woul|d get ca|
|00000e50| 75 67 68 74 20 62 79 20 | 74 68 65 20 56 42 4c 20 |ught by |the VBL |
|00000e60| 22 73 74 61 63 6b 20 73 | 6e 69 66 66 65 72 22 20 |"stack s|niffer" |
|00000e70| 72 6f 75 74 69 6e 65 2c | 20 77 68 69 63 68 20 77 |routine,| which w|
|00000e80| 6f 75 6c 64 20 66 69 6e | 64 20 53 50 20 70 6f 69 |ould fin|d SP poi|
|00000e90| 6e 74 69 6e 67 20 62 65 | 6c 6f 77 20 41 70 70 6c |nting be|low Appl|
|00000ea0| 4c 69 6d 69 74 2c 20 74 | 68 69 6e 6b 20 74 68 61 |Limit, t|hink tha|
|00000eb0| 74 20 74 68 65 20 73 74 | 61 63 6b 20 68 61 64 20 |t the st|ack had |
|00000ec0| 65 6e 63 72 6f 61 63 68 | 65 64 20 69 6e 74 6f 20 |encroach|ed into |
|00000ed0| 74 68 65 20 68 65 61 70 | 20 7a 6f 6e 65 2c 20 61 |the heap| zone, a|
|00000ee0| 6e 64 20 70 6f 6c 69 74 | 65 6c 79 20 62 6f 77 20 |nd polit|ely bow |
|00000ef0| 6f 75 74 20 77 69 74 68 | 20 73 79 73 74 65 6d 20 |out with| system |
|00000f00| 65 72 72 6f 72 20 32 38 | 20 28 73 74 61 63 6b 20 |error 28| (stack |
|00000f10| 63 6f 6c 6c 69 64 65 73 | 20 77 69 74 68 20 68 65 |collides| with he|
|00000f20| 61 70 29 2e 0d 0d 5c 09 | 09 09 3d 3d 3d 3d 3d 3d |ap)...\.|..======|
|00000f30| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00000f40| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 0d 0d 5c 20 48 65 |========|==..\ He|
|00000f50| 72 65 20 77 65 20 64 65 | 66 69 6e 65 20 76 61 6c |re we de|fine val|
|00000f60| 75 65 73 20 66 6f 72 20 | 74 68 65 20 73 70 61 63 |ues for |the spac|
|00000f70| 65 20 74 6f 20 62 65 20 | 61 6c 6c 6f 63 61 74 65 |e to be |allocate|
|00000f80| 64 20 66 6f 72 20 74 68 | 65 20 4d 6f 70 73 20 73 |d for th|e Mops s|
|00000f90| 74 61 63 6b 73 20 66 6f | 72 20 6e 65 77 20 74 61 |tacks fo|r new ta|
|00000fa0| 73 6b 73 2e 20 20 54 68 | 65 73 65 20 76 61 6c 75 |sks. Th|ese valu|
|00000fb0| 65 73 20 6d 61 79 20 62 | 65 20 63 68 61 6e 67 65 |es may b|e change|
|00000fc0| 64 20 61 73 20 72 65 71 | 75 69 72 65 64 2e 20 20 |d as req|uired. |
|00000fd0| 49 74 27 73 20 62 65 74 | 74 65 72 20 74 6f 20 65 |It's bet|ter to e|
|00000fe0| 72 72 20 6f 6e 20 74 68 | 65 20 62 69 67 20 73 69 |rr on th|e big si|
|00000ff0| 64 65 2e 20 20 52 65 6d | 65 6d 62 65 72 20 74 68 |de. Rem|ember th|
|00001000| 61 74 20 61 6e 79 20 54 | 6f 6f 6c 62 6f 78 20 63 |at any T|oolbox c|
|00001010| 61 6c 6c 73 20 63 61 6e | 20 75 73 65 20 61 20 6c |alls can| use a l|
|00001020| 6f 74 20 6f 66 20 64 61 | 74 61 20 73 74 61 63 6b |ot of da|ta stack|
|00001030| 20 73 70 61 63 65 2e 0d | 0d 20 32 30 30 30 09 76 | space..|. 2000.v|
|00001040| 61 6c 75 65 09 52 5f 53 | 50 41 43 45 0d 20 33 30 |alue.R_S|PACE. 30|
|00001050| 30 30 09 76 61 6c 75 65 | 09 53 5f 53 50 41 43 45 |00.value|.S_SPACE|
|00001060| 0d 0d 31 36 30 30 30 09 | 76 61 6c 75 65 09 46 47 |..16000.|value.FG|
|00001070| 44 5f 53 5f 53 50 41 43 | 45 0d 0d 20 20 20 20 30 |D_S_SPAC|E.. 0|
|00001080| 09 76 61 6c 75 65 09 52 | 45 41 4c 5f 52 50 30 0d |.value.R|EAL_RP0.|
|00001090| 20 20 20 20 30 09 76 61 | 6c 75 65 09 4e 45 57 5f | 0.va|lue.NEW_|
|000010a0| 53 50 0d 0d 0d 5c 20 50 | 6f 73 73 69 62 6c 65 20 |SP...\ P|ossible |
|000010b0| 74 61 73 6b 20 73 74 61 | 74 75 73 65 73 3a 0d 0d |task sta|tuses:..|
|000010c0| 74 79 70 65 7b 20 20 41 | 57 41 4b 45 20 20 41 53 |type{ A|WAKE AS|
|000010d0| 4c 45 45 50 20 20 57 41 | 49 54 49 4e 47 20 20 53 |LEEP WA|ITING S|
|000010e0| 54 4f 50 50 45 44 20 20 | 54 45 52 4d 49 4e 41 54 |TOPPED |TERMINAT|
|000010f0| 45 44 20 20 41 56 41 49 | 4c 41 42 4c 45 20 20 43 |ED AVAI|LABLE C|
|00001100| 52 41 53 48 45 44 20 20 | 7d 0d 0d 0d 5c 20 43 6f |RASHED |}...\ Co|
|00001110| 6e 73 74 61 6e 74 73 20 | 66 6f 72 20 74 68 65 20 |nstants |for the |
|00001120| 36 38 30 30 30 20 6f 70 | 63 6f 64 65 73 20 77 65 |68000 op|codes we|
|00001130| 20 6e 65 65 64 3a 0d 0d | 24 20 34 45 46 39 20 63 | need:..|$ 4EF9 c|
|00001140| 6f 6e 73 74 61 6e 74 09 | 51 4a 4d 50 09 09 5c 20 |onstant.|QJMP..\ |
|00001150| 4a 4d 50 20 28 61 62 73 | 6f 6c 75 74 65 20 6c 6f |JMP (abs|olute lo|
|00001160| 6e 67 29 0d 24 20 36 31 | 30 34 20 63 6f 6e 73 74 |ng).$ 61|04 const|
|00001170| 61 6e 74 09 51 42 53 52 | 09 09 5c 20 42 53 52 20 |ant.QBSR|..\ BSR |
|00001180| 20 2b 34 0d 0d 6f 62 6a | 50 74 72 09 54 48 49 53 | +4..obj|Ptr.THIS|
|00001190| 5f 54 41 53 4b 09 09 5c | 20 50 6f 69 6e 74 73 20 |_TASK..\| Points |
|000011a0| 74 6f 20 74 68 65 20 63 | 75 72 72 65 6e 74 6c 79 |to the c|urrently|
|000011b0| 20 72 75 6e 6e 69 6e 67 | 20 74 61 73 6b 2e 0d 0d | running| task...|
|000011c0| 6f 62 6a 50 74 72 09 54 | 53 4b 31 09 09 09 5c 20 |objPtr.T|SK1...\ |
|000011d0| 55 73 65 64 20 66 6f 72 | 20 74 72 61 63 6b 69 6e |Used for| trackin|
|000011e0| 67 20 74 61 73 6b 20 71 | 75 65 75 65 73 2e 0d 6f |g task q|ueues..o|
|000011f0| 62 6a 50 74 72 09 54 53 | 4b 32 09 09 09 5c 20 20 |bjPtr.TS|K2...\ |
|00001200| 57 69 6c 6c 20 62 65 20 | 73 65 74 20 74 6f 20 63 |Will be |set to c|
|00001210| 6c 61 73 73 20 54 61 73 | 6b 2e 0d 0d 20 20 20 20 |lass Tas|k... |
|00001220| 30 09 76 61 6c 75 65 09 | 53 54 50 09 09 5c 20 53 |0.value.|STP..\ S|
|00001230| 74 61 63 6b 20 61 6c 6c | 6f 63 61 74 69 6f 6e 20 |tack all|ocation |
|00001240| 70 6f 69 6e 74 65 72 2e | 0d 0d 0d 5c 09 09 09 3d |pointer.|...\...=|
|00001250| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00001260| 3d 3d 3d 0d 0d 3a 63 6f | 64 65 20 20 53 55 53 50 |===..:co|de SUSP|
|00001270| 45 4e 44 0d 09 6d 6f 76 | 65 6d 2e 6c 09 64 32 2d |END..mov|em.l.d2-|
|00001280| 64 37 2f 61 32 2f 61 35 | 2f 61 37 2c 2d 28 61 36 |d7/a2/a5|/a7,-(a6|
|00001290| 29 09 09 3b 20 53 61 76 | 65 20 61 6c 6c 20 72 65 |)..; Sav|e all re|
|000012a0| 6c 65 76 61 6e 74 20 72 | 65 67 73 0d 09 6d 6f 76 |levant r|egs..mov|
|000012b0| 65 6d 2e 6c 09 64 69 63 | 5b 45 78 74 72 61 4c 6f |em.l.dic|[ExtraLo|
|000012c0| 63 61 6c 73 5d 2c 64 30 | 2d 64 37 2f 61 30 2f 61 |cals],d0|-d7/a0/a|
|000012d0| 31 09 3b 20 53 61 76 65 | 20 45 78 74 72 61 4c 6f |1.; Save| ExtraLo|
|000012e0| 63 61 6c 73 20 61 72 65 | 61 0d 09 6d 6f 76 65 6d |cals are|a..movem|
|000012f0| 2e 6c 09 64 30 2d 64 37 | 2f 61 30 2f 61 31 2c 2d |.l.d0-d7|/a0/a1,-|
|00001300| 28 61 36 29 0d 09 6d 6f | 76 65 6d 2e 6c 09 34 30 |(a6)..mo|vem.l.40|
|00001310| 28 64 69 63 5b 45 78 74 | 72 61 4c 6f 63 61 6c 73 |(dic[Ext|raLocals|
|00001320| 5d 29 2c 64 30 2d 64 37 | 2f 61 30 2f 61 31 0d 09 |]),d0-d7|/a0/a1..|
|00001330| 6d 6f 76 65 6d 2e 6c 09 | 64 30 2d 64 37 2f 61 30 |movem.l.|d0-d7/a0|
|00001340| 2f 61 31 2c 2d 28 61 36 | 29 0d 09 6d 6f 76 65 09 |/a1,-(a6|)..move.|
|00001350| 64 69 63 5b 74 68 69 73 | 5f 74 61 73 6b 5d 2c 61 |dic[this|_task],a|
|00001360| 31 0d 09 6d 6f 76 65 09 | 61 36 2c 31 32 28 61 31 |1..move.|a6,12(a1|
|00001370| 29 09 3b 20 53 61 76 65 | 20 64 61 74 61 20 73 74 |).; Save| data st|
|00001380| 6b 20 70 74 72 20 69 6e | 20 74 61 73 6b 20 6f 62 |k ptr in| task ob|
|00001390| 6a 65 63 74 0d 09 6d 6f | 76 65 09 32 28 61 31 29 |ject..mo|ve.2(a1)|
|000013a0| 2c 61 30 0d 09 6a 6d 70 | 09 28 61 30 29 09 3b 20 |,a0..jmp|.(a0).; |
|000013b0| 4a 4d 50 20 74 6f 20 4c | 49 4e 4b 20 74 6f 20 72 |JMP to L|INK to r|
|000013c0| 65 73 74 61 72 74 20 6e | 65 78 74 20 74 61 73 6b |estart n|ext task|
|000013d0| 2e 0d 3b 63 6f 64 65 0d | 0d 3a 63 6f 64 65 20 20 |..;code.|.:code |
|000013e0| 52 45 53 54 41 52 54 0d | 09 6d 6f 76 65 09 28 61 |RESTART.|.move.(a|
|000013f0| 37 29 2b 2c 61 31 0d 09 | 73 75 62 71 09 23 32 2c |7)+,a1..|subq.#2,|
|00001400| 61 31 09 3b 20 41 31 20 | 2d 3e 20 74 61 73 6b 20 |a1.; A1 |-> task |
|00001410| 6f 62 6a 65 63 74 20 61 | 64 64 72 0d 09 6d 6f 76 |object a|ddr..mov|
|00001420| 65 09 31 38 28 61 31 29 | 2c 64 69 63 5b 53 50 30 |e.18(a1)|,dic[SP0|
|00001430| 5d 09 3b 20 53 65 74 20 | 53 50 30 0d 09 6d 6f 76 |].; Set |SP0..mov|
|00001440| 65 09 32 32 28 61 31 29 | 2c 64 69 63 5b 52 50 30 |e.22(a1)|,dic[RP0|
|00001450| 5d 09 3b 20 53 65 74 20 | 52 50 30 0d 09 6d 6f 76 |].; Set |RP0..mov|
|00001460| 65 09 31 32 28 61 31 29 | 2c 61 36 09 3b 20 53 65 |e.12(a1)|,a6.; Se|
|00001470| 74 20 53 50 0d 09 6c 65 | 61 09 72 65 6c 5b 74 68 |t SP..le|a.rel[th|
|00001480| 69 73 5f 74 61 73 6b 5d | 2c 61 30 09 3b 20 57 65 |is_task]|,a0.; We|
|00001490| 20 6d 61 79 20 62 65 20 | 62 61 73 65 64 20 6f 6e | may be |based on|
|000014a0| 20 41 35 2c 20 6e 6f 74 | 20 73 65 74 20 75 70 20 | A5, not| set up |
|000014b0| 79 65 74 0d 09 6d 6f 76 | 65 2e 6c 09 61 31 2c 28 |yet..mov|e.l.a1,(|
|000014c0| 61 30 29 0d 09 6d 6f 76 | 65 6d 2e 6c 09 28 61 36 |a0)..mov|em.l.(a6|
|000014d0| 29 2b 2c 64 30 2d 64 37 | 2f 61 30 2f 61 31 09 09 |)+,d0-d7|/a0/a1..|
|000014e0| 3b 20 52 65 73 74 6f 72 | 65 20 45 78 74 72 61 4c |; Restor|e ExtraL|
|000014f0| 6f 63 61 6c 73 20 61 72 | 65 61 0d 09 6d 6f 76 65 |ocals ar|ea..move|
|00001500| 6d 2e 6c 09 64 30 2d 64 | 37 2f 61 30 2f 61 31 2c |m.l.d0-d|7/a0/a1,|
|00001510| 34 30 28 64 69 63 5b 45 | 78 74 72 61 4c 6f 63 61 |40(dic[E|xtraLoca|
|00001520| 6c 73 5d 0d 09 6d 6f 76 | 65 6d 2e 6c 09 28 61 36 |ls]..mov|em.l.(a6|
|00001530| 29 2b 2c 64 30 2d 64 37 | 2f 61 30 2f 61 31 0d 09 |)+,d0-d7|/a0/a1..|
|00001540| 6d 6f 76 65 6d 2e 6c 09 | 64 30 2d 64 37 2f 61 30 |movem.l.|d0-d7/a0|
|00001550| 2f 61 31 2c 64 69 63 5b | 45 78 74 72 61 4c 6f 63 |/a1,dic[|ExtraLoc|
|00001560| 61 6c 73 5d 0d 09 6d 6f | 76 65 6d 2e 6c 09 28 61 |als]..mo|vem.l.(a|
|00001570| 36 29 2b 2c 64 32 2d 64 | 37 2f 61 32 2f 61 35 2f |6)+,d2-d|7/a2/a5/|
|00001580| 61 37 09 09 3b 20 52 65 | 73 74 6f 72 65 20 73 61 |a7..; Re|store sa|
|00001590| 76 65 64 20 72 65 67 73 | 0d 09 72 74 73 0d 3b 63 |ved regs|..rts.;c|
|000015a0| 6f 64 65 0d 0d 0d 3a 20 | 4e 6f 52 6f 6f 6d 09 31 |ode...: |NoRoom.1|
|000015b0| 35 39 20 64 69 65 20 20 | 3b 0d 0d 3a 63 6f 64 65 |59 die |;..:code|
|000015c0| 20 20 4d 4f 56 45 5f 54 | 41 53 4b 53 09 5c 20 28 | MOVE_T|ASKS.\ (|
|000015d0| 20 64 69 73 74 20 2d 2d | 20 29 0d 09 6c 6f 63 0d | dist --| )..loc.|
|000015e0| 09 70 6f 70 2e 6c 09 64 | 31 09 3b 20 44 31 20 3d |.pop.l.d|1.; D1 =|
|000015f0| 20 64 69 73 74 61 6e 63 | 65 20 74 6f 20 6d 6f 76 | distanc|e to mov|
|00001600| 65 0d 09 6d 6f 76 65 2e | 6c 09 61 36 2c 64 30 0d |e..move.|l.a6,d0.|
|00001610| 09 73 75 62 2e 6c 09 64 | 31 2c 64 30 09 3b 20 44 |.sub.l.d|1,d0.; D|
|00001620| 30 20 3d 20 74 65 6e 74 | 61 74 69 76 65 20 64 65 |0 = tent|ative de|
|00001630| 73 74 69 6e 61 74 69 6f | 6e 0d 09 63 6d 70 2e 6c |stinatio|n..cmp.l|
|00001640| 09 67 6c 6f 62 5b 41 70 | 70 6c 4c 69 6d 69 74 5d |.glob[Ap|plLimit]|
|00001650| 2c 64 30 0d 09 62 6c 6f | 2e 73 09 64 69 63 5b 6e |,d0..blo|.s.dic[n|
|00001660| 6f 52 6f 6f 6d 5d 0d 09 | 73 75 62 2e 6c 09 64 31 |oRoom]..|sub.l.d1|
|00001670| 2c 64 69 63 5b 53 50 30 | 5d 0d 09 73 75 62 2e 6c |,dic[SP0|]..sub.l|
|00001680| 09 64 31 2c 64 69 63 5b | 52 50 30 5d 0d 09 6d 6f |.d1,dic[|RP0]..mo|
|00001690| 76 65 2e 6c 09 64 30 2c | 61 31 09 3b 20 41 31 20 |ve.l.d0,|a1.; A1 |
|000016a0| 2d 3e 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 0d 09 |-> desti|nation..|
|000016b0| 6d 6f 76 65 2e 6c 09 64 | 69 63 5b 72 65 61 6c 5f |move.l.d|ic[real_|
|000016c0| 52 50 30 5d 2c 64 30 0d | 09 73 75 62 2e 6c 09 61 |RP0],d0.|.sub.l.a|
|000016d0| 36 2c 64 30 09 3b 20 44 | 30 20 3d 20 23 62 79 74 |6,d0.; D|0 = #byt|
|000016e0| 65 73 20 74 6f 20 6d 6f | 76 65 0d 09 6d 6f 76 65 |es to mo|ve..move|
|000016f0| 2e 6c 09 61 37 2c 61 30 | 0d 09 73 75 62 2e 6c 09 |.l.a7,a0|..sub.l.|
|00001700| 64 31 2c 61 30 0d 09 6d | 6f 76 65 2e 6c 09 61 30 |d1,a0..m|ove.l.a0|
|00001710| 2c 64 69 63 5b 6e 65 77 | 5f 53 50 5d 0d 09 6d 6f |,dic[new|_SP]..mo|
|00001720| 76 65 2e 6c 09 61 36 2c | 61 30 09 3b 20 41 30 20 |ve.l.a6,|a0.; A0 |
|00001730| 2d 3e 20 73 6f 75 72 63 | 65 0d 09 6d 6f 76 65 2e |-> sourc|e..move.|
|00001740| 6c 09 61 31 2c 61 37 09 | 3b 20 53 65 74 20 41 37 |l.a1,a7.|; Set A7|
|00001750| 20 6c 6f 77 20 69 6e 20 | 63 61 73 65 20 6f 66 20 | low in |case of |
|00001760| 61 6e 20 69 6e 74 65 72 | 72 75 70 74 20 64 75 72 |an inter|rupt dur|
|00001770| 69 6e 67 0d 09 6d 6f 76 | 65 2e 6c 09 61 31 2c 61 |ing..mov|e.l.a1,a|
|00001780| 36 09 3b 20 20 74 68 65 | 20 6c 6f 6f 70 0d 09 61 |6.; the| loop..a|
|00001790| 64 64 71 2e 6c 09 23 38 | 2c 64 30 0d 6c 6f 6f 70 |ddq.l.#8|,d0.loop|
|000017a0| 09 6d 6f 76 65 2e 6c 09 | 28 61 30 29 2b 2c 28 61 |.move.l.|(a0)+,(a|
|000017b0| 31 29 2b 0d 09 73 75 62 | 71 2e 6c 09 23 34 2c 64 |1)+..sub|q.l.#4,d|
|000017c0| 30 0d 6c 70 74 65 73 74 | 09 62 67 74 2e 73 09 6c |0.lptest|.bgt.s.l|
|000017d0| 6f 6f 70 0d 09 6d 6f 76 | 65 2e 6c 09 64 69 63 5b |oop..mov|e.l.dic[|
|000017e0| 6e 65 77 5f 53 50 5d 2c | 61 37 0d 3b 63 6f 64 65 |new_SP],|a7.;code|
|000017f0| 0d 0d 0d 66 6f 72 77 61 | 72 64 09 43 52 41 53 48 |...forwa|rd.CRASH|
|00001800| 0d 66 6f 72 77 61 72 64 | 09 4e 4f 57 48 45 52 45 |.forward|.NOWHERE|
|00001810| 0d 0d 0d 3a 63 6c 61 73 | 73 09 54 41 53 4b 09 73 |...:clas|s.TASK.s|
|00001820| 75 70 65 72 7b 20 6f 62 | 6a 65 63 74 20 7d 0d 0d |uper{ ob|ject }..|
|00001830| 09 69 6e 74 09 45 4e 54 | 52 59 0d 09 76 61 72 09 |.int.ENT|RY..var.|
|00001840| 4c 49 4e 4b 0d 09 69 6e | 74 09 4a 4d 50 5f 43 4f |LINK..in|t.JMP_CO|
|00001850| 44 45 0d 09 76 61 72 09 | 5e 52 45 53 54 41 52 54 |DE..var.|^RESTART|
|00001860| 0d 09 76 61 72 09 5e 53 | 50 0d 09 69 6e 74 09 53 |..var.^S|P..int.S|
|00001870| 54 41 54 55 53 0d 09 76 | 61 72 09 74 53 50 30 0d |TATUS..v|ar.tSP0.|
|00001880| 09 76 61 72 09 74 52 50 | 30 0d 09 76 61 72 09 51 |.var.tRP|0..var.Q|
|00001890| 55 45 55 45 0d 09 76 61 | 72 09 51 4c 49 4e 4b 0d |UEUE..va|r.QLINK.|
|000018a0| 09 69 6e 74 09 51 53 54 | 41 54 55 53 0d 0d 27 20 |.int.QST|ATUS..' |
|000018b0| 74 68 69 73 5f 74 61 73 | 6b 09 73 65 74 5f 74 6f |this_tas|k.set_to|
|000018c0| 5f 63 6c 61 73 73 20 20 | 74 61 73 6b 0d 27 20 74 |_class |task.' t|
|000018d0| 73 6b 31 09 09 73 65 74 | 5f 74 6f 5f 63 6c 61 73 |sk1..set|_to_clas|
|000018e0| 73 20 20 74 61 73 6b 0d | 27 20 74 73 6b 32 09 09 |s task.|' tsk2..|
|000018f0| 73 65 74 5f 74 6f 5f 63 | 6c 61 73 73 20 20 74 61 |set_to_c|lass ta|
|00001900| 73 6b 0d 0d 0d 3a 6d 20 | 28 53 4c 45 45 50 29 3a |sk...:m |(SLEEP):|
|00001910| 09 51 4a 4d 50 20 20 70 | 75 74 3a 20 65 6e 74 72 |.QJMP p|ut: entr|
|00001920| 79 20 20 3b 6d 0d 3a 6d | 20 53 4c 45 45 50 3a 09 |y ;m.:m| SLEEP:.|
|00001930| 09 61 73 6c 65 65 70 20 | 20 70 75 74 3a 20 73 74 |.asleep | put: st|
|00001940| 61 74 75 73 20 20 20 28 | 73 6c 65 65 70 29 3a 20 |atus (|sleep): |
|00001950| 73 65 6c 66 20 20 3b 6d | 0d 3a 6d 20 57 41 4b 45 |self ;m|.:m WAKE|
|00001960| 3a 09 09 51 42 53 52 20 | 20 70 75 74 3a 20 65 6e |:..QBSR | put: en|
|00001970| 74 72 79 20 20 20 20 61 | 77 61 6b 65 20 20 70 75 |try a|wake pu|
|00001980| 74 3a 20 73 74 61 74 75 | 73 20 20 3b 6d 0d 0d 3a |t: statu|s ;m..:|
|00001990| 6d 20 4e 45 58 54 3a 09 | 09 67 65 74 3a 20 6c 69 |m NEXT:.|.get: li|
|000019a0| 6e 6b 20 20 3b 6d 0d 3a | 6d 20 53 45 54 4e 45 58 |nk ;m.:|m SETNEX|
|000019b0| 54 3a 09 70 75 74 3a 20 | 6c 69 6e 6b 20 20 3b 6d |T:.put: |link ;m|
|000019c0| 0d 0d 3a 6d 20 4e 45 58 | 54 51 3a 09 09 67 65 74 |..:m NEX|TQ:..get|
|000019d0| 3a 20 51 6c 69 6e 6b 20 | 20 3b 6d 0d 3a 6d 20 53 |: Qlink | ;m.:m S|
|000019e0| 45 54 4e 45 58 54 51 3a | 09 70 75 74 3a 20 51 6c |ETNEXTQ:|.put: Ql|
|000019f0| 69 6e 6b 20 20 3b 6d 0d | 0d 3a 6d 20 3f 52 45 53 |ink ;m.|.:m ?RES|
|00001a00| 55 4d 45 3a 09 5c 20 28 | 20 73 74 61 74 75 73 23 |UME:.\ (| status#|
|00001a10| 20 2d 2d 20 62 20 29 0d | 09 67 65 74 3a 20 51 73 | -- b ).|.get: Qs|
|00001a20| 74 61 74 75 73 20 20 3e | 3d 20 20 64 75 70 0d 09 |tatus >|= dup..|
|00001a30| 49 46 20 20 77 61 6b 65 | 3a 20 73 65 6c 66 20 20 |IF wake|: self |
|00001a40| 54 48 45 4e 20 20 3b 6d | 0d 0d 3a 6d 20 52 45 4c |THEN ;m|..:m REL|
|00001a50| 45 41 53 45 51 3a 0d 09 | 6e 69 6c 50 20 2d 3e 20 |EASEQ:..|nilP -> |
|00001a60| 74 73 6b 31 20 20 20 67 | 65 74 3a 20 71 75 65 75 |tsk1 g|et: queu|
|00001a70| 65 20 20 2d 3e 20 74 73 | 6b 32 0d 09 42 45 47 49 |e -> ts|k2..BEGI|
|00001a80| 4e 0d 09 09 74 73 6b 32 | 20 20 6e 69 6c 50 20 3d |N...tsk2| nilP =|
|00001a90| 20 20 3f 45 58 49 54 0d | 09 09 67 65 74 3a 20 73 | ?EXIT.|..get: s|
|00001aa0| 74 61 74 75 73 20 20 3f | 72 65 73 75 6d 65 3a 20 |tatus ?|resume: |
|00001ab0| 74 73 6b 32 0d 09 09 49 | 46 20 20 28 20 72 65 73 |tsk2...I|F ( res|
|00001ac0| 75 6d 65 64 20 2d 20 72 | 65 6d 6f 76 65 20 66 72 |umed - r|emove fr|
|00001ad0| 6f 6d 20 71 75 65 75 65 | 20 29 0d 09 09 09 6e 65 |om queue| )....ne|
|00001ae0| 78 74 51 3a 20 74 73 6b | 32 0d 09 09 09 74 73 6b |xtQ: tsk|2....tsk|
|00001af0| 31 20 20 6e 69 6c 50 20 | 3d 0d 09 09 09 49 46 20 |1 nilP |=....IF |
|00001b00| 20 70 75 74 3a 20 71 75 | 65 75 65 20 20 45 4c 53 | put: qu|eue ELS|
|00001b10| 45 20 20 73 65 74 6e 65 | 78 74 51 3a 20 74 73 6b |E setne|xtQ: tsk|
|00001b20| 31 20 20 54 48 45 4e 0d | 09 09 54 48 45 4e 0d 09 |1 THEN.|..THEN..|
|00001b30| 09 74 73 6b 32 20 2d 3e | 20 74 73 6b 31 20 20 6e |.tsk2 ->| tsk1 n|
|00001b40| 65 78 74 51 3a 20 74 73 | 6b 32 20 20 2d 3e 20 74 |extQ: ts|k2 -> t|
|00001b50| 73 6b 32 0d 09 41 47 41 | 49 4e 20 20 3b 6d 0d 0d |sk2..AGA|IN ;m..|
|00001b60| 0d 3a 6d 20 28 57 41 49 | 54 29 3a 09 5c 20 28 20 |.:m (WAI|T):.\ ( |
|00001b70| 73 74 61 74 75 73 23 20 | 2d 2d 20 29 20 20 55 73 |status# |-- ) Us|
|00001b80| 65 64 20 62 79 20 57 61 | 69 74 3a 20 2d 20 73 65 |ed by Wa|it: - se|
|00001b90| 65 20 62 65 6c 6f 77 2e | 0d 09 70 75 74 3a 20 51 |e below.|..put: Q|
|00001ba0| 73 74 61 74 75 73 20 20 | 77 61 69 74 69 6e 67 20 |status |waiting |
|00001bb0| 20 70 75 74 3a 20 73 74 | 61 74 75 73 20 20 72 65 | put: st|atus re|
|00001bc0| 6c 65 61 73 65 51 3a 20 | 73 65 6c 66 0d 09 28 73 |leaseQ: |self..(s|
|00001bd0| 6c 65 65 70 29 3a 20 73 | 65 6c 66 20 20 3b 6d 0d |leep): s|elf ;m.|
|00001be0| 0d 3a 6d 20 57 41 49 54 | 3a 09 5c 20 28 20 73 74 |.:m WAIT|:.\ ( st|
|00001bf0| 61 74 75 73 23 20 2d 2d | 20 29 2e 0d 09 5c 20 49 |atus# --| )...\ I|
|00001c00| 66 20 74 68 65 20 67 69 | 76 65 6e 20 73 74 61 74 |f the gi|ven stat|
|00001c10| 75 73 23 20 69 73 20 67 | 72 65 61 74 65 72 20 74 |us# is g|reater t|
|00001c20| 68 61 6e 20 74 68 65 20 | 73 74 61 74 75 73 20 6f |han the |status o|
|00001c30| 66 20 53 45 4c 46 2c 20 | 74 68 65 20 63 75 72 72 |f SELF, |the curr|
|00001c40| 65 6e 74 6c 79 0d 09 5c | 20 72 75 6e 6e 69 6e 67 |ently..\| running|
|00001c50| 20 74 61 73 6b 20 69 73 | 20 71 75 65 75 65 64 20 | task is| queued |
|00001c60| 61 6e 64 20 70 75 74 20 | 74 6f 20 73 6c 65 65 70 |and put |to sleep|
|00001c70| 2e 20 20 49 74 20 77 69 | 6c 6c 20 62 65 20 77 6f |. It wi|ll be wo|
|00001c80| 6b 65 6e 20 77 68 65 6e | 20 74 68 65 0d 09 5c 20 |ken when| the..\ |
|00001c90| 73 74 61 74 75 73 20 6f | 66 20 53 45 4c 46 20 67 |status o|f SELF g|
|00001ca0| 6f 65 73 20 74 6f 20 74 | 68 65 20 67 69 76 65 6e |oes to t|he given|
|00001cb0| 20 73 74 61 74 75 73 23 | 20 6f 72 20 68 69 67 68 | status#| or high|
|00001cc0| 65 72 2e 20 20 49 66 20 | 74 68 65 20 67 69 76 65 |er. If |the give|
|00001cd0| 6e 20 73 74 61 74 75 73 | 23 0d 09 5c 20 69 73 20 |n status|#..\ is |
|00001ce0| 6c 65 73 73 20 74 68 61 | 6e 20 6f 72 20 65 71 75 |less tha|n or equ|
|00001cf0| 61 6c 20 74 6f 20 74 68 | 65 20 73 74 61 74 75 73 |al to th|e status|
|00001d00| 20 6f 66 20 53 45 4c 46 | 2c 20 77 65 20 64 6f 6e | of SELF|, we don|
|00001d10| 27 74 20 71 75 65 75 65 | 20 74 68 69 73 5f 74 61 |'t queue| this_ta|
|00001d20| 73 6b 2c 0d 09 5c 20 73 | 69 6e 63 65 20 74 68 65 |sk,..\ s|ince the|
|00001d30| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 69 74 20 77 69 | conditi|on it wi|
|00001d40| 73 68 65 73 20 74 6f 20 | 77 61 69 74 20 66 6f 72 |shes to |wait for|
|00001d50| 20 68 61 73 20 61 6c 72 | 65 61 64 79 20 6f 63 63 | has alr|eady occ|
|00001d60| 75 72 72 65 64 2e 20 20 | 48 6f 77 65 76 65 72 0d |urred. |However.|
|00001d70| 09 5c 20 77 65 20 6d 61 | 6b 65 20 69 74 20 64 6f |.\ we ma|ke it do|
|00001d80| 20 61 20 22 70 68 61 6e | 74 6f 6d 22 20 77 61 69 | a "phan|tom" wai|
|00001d90| 74 20 73 6f 20 74 68 61 | 74 20 69 74 73 20 6f 77 |t so tha|t its ow|
|00001da0| 6e 20 71 75 65 75 65 20 | 77 69 6c 6c 20 62 65 20 |n queue |will be |
|00001db0| 72 65 6c 65 61 73 65 64 | 2e 20 20 0d 09 5c 20 4c |released|. ..\ L|
|00001dc0| 6f 67 69 63 61 6c 6c 79 | 20 69 74 20 68 61 73 20 |ogically| it has |
|00001dd0| 77 61 69 74 65 64 2c 20 | 73 6f 20 61 6e 79 20 74 |waited, |so any t|
|00001de0| 61 73 6b 73 20 77 61 69 | 74 69 6e 67 20 66 6f 72 |asks wai|ting for|
|00001df0| 20 69 74 20 74 6f 20 77 | 61 69 74 2c 20 6d 75 73 | it to w|ait, mus|
|00001e00| 74 20 62 65 0d 09 5c 20 | 72 65 6c 65 61 73 65 64 |t be..\ |released|
|00001e10| 2e 0d 0d 09 64 75 70 20 | 20 28 77 61 69 74 29 3a |....dup | (wait):|
|00001e20| 20 74 68 69 73 5f 74 61 | 73 6b 0d 09 67 65 74 3a | this_ta|sk..get:|
|00001e30| 20 73 74 61 74 75 73 20 | 20 3c 3d 0d 09 49 46 09 | status | <=..IF.|
|00001e40| 77 61 6b 65 3a 20 74 68 | 69 73 5f 74 61 73 6b 0d |wake: th|is_task.|
|00001e50| 09 45 4c 53 45 0d 09 09 | 67 65 74 3a 20 71 75 65 |.ELSE...|get: que|
|00001e60| 75 65 20 20 73 65 74 6e | 65 78 74 51 3a 20 74 68 |ue setn|extQ: th|
|00001e70| 69 73 5f 74 61 73 6b 0d | 09 09 74 68 69 73 5f 74 |is_task.|..this_t|
|00001e80| 61 73 6b 20 20 70 75 74 | 3a 20 71 75 65 75 65 20 |ask put|: queue |
|00001e90| 20 0d 09 09 6e 65 78 74 | 5f 74 61 73 6b 0d 09 54 | ...next|_task..T|
|00001ea0| 48 45 4e 20 20 3b 6d 0d | 0d 3a 6d 20 53 54 41 54 |HEN ;m.|.:m STAT|
|00001eb0| 55 53 3a 09 67 65 74 3a | 20 73 74 61 74 75 73 20 |US:.get:| status |
|00001ec0| 20 3b 6d 0d 3a 6d 20 53 | 45 54 53 54 41 54 55 53 | ;m.:m S|ETSTATUS|
|00001ed0| 3a 09 70 75 74 3a 20 73 | 74 61 74 75 73 20 20 72 |:.put: s|tatus r|
|00001ee0| 65 6c 65 61 73 65 51 3a | 20 73 65 6c 66 20 20 3b |eleaseQ:| self ;|
|00001ef0| 6d 0d 0d 3a 6d 20 41 53 | 53 49 47 4e 3a 20 20 7b |m..:m AS|SIGN: {|
|00001f00| 20 50 43 20 5c 20 73 70 | 74 72 20 2d 2d 20 7d 0d | PC \ sp|tr -- }.|
|00001f10| 09 67 65 74 3a 20 73 74 | 61 74 75 73 20 20 61 76 |.get: st|atus av|
|00001f20| 61 69 6c 61 62 6c 65 20 | 20 3c 3e 20 20 61 62 6f |ailable | <> abo|
|00001f30| 72 74 22 20 54 61 73 6b | 20 6e 6f 74 20 61 76 61 |rt" Task| not ava|
|00001f40| 69 6c 61 62 6c 65 22 0d | 09 09 5c 20 4e 6f 77 20 |ilable".|..\ Now |
|00001f50| 77 65 20 73 65 74 20 75 | 70 20 61 20 22 73 61 76 |we set u|p a "sav|
|00001f60| 65 64 20 72 65 67 22 20 | 69 6d 61 67 65 20 73 6f |ed reg" |image so|
|00001f70| 20 74 68 61 74 20 69 74 | 20 6c 6f 6f 6b 73 20 6c | that it| looks l|
|00001f80| 69 6b 65 0d 09 09 5c 20 | 77 65 27 76 65 20 62 65 |ike...\ |we've be|
|00001f90| 65 6e 20 73 75 73 70 65 | 6e 64 65 64 20 77 69 74 |en suspe|nded wit|
|00001fa0| 68 20 50 43 20 61 73 20 | 74 68 65 20 72 65 74 75 |h PC as |the retu|
|00001fb0| 72 6e 20 61 64 64 72 65 | 73 73 2e 0d 09 67 65 74 |rn addre|ss...get|
|00001fc0| 3a 20 74 53 50 30 20 20 | 2d 3e 20 73 70 74 72 0d |: tSP0 |-> sptr.|
|00001fd0| 09 2d 34 20 2b 2b 3e 20 | 73 70 74 72 0d 09 67 65 |.-4 ++> |sptr..ge|
|00001fe0| 74 3a 20 74 52 50 30 20 | 34 2d 20 20 5b 27 5d 20 |t: tRP0 |4- ['] |
|00001ff0| 6e 6f 77 68 65 72 65 09 | 6f 76 65 72 20 21 09 5c |nowhere.|over !.\|
|00002000| 20 49 6e 69 74 69 61 6c | 20 68 69 67 68 65 72 20 | Initial| higher |
|00002010| 72 74 6e 20 61 64 64 72 | 0d 09 09 20 34 2d 20 20 |rtn addr|... 4- |
|00002020| 50 43 09 09 6f 76 65 72 | 20 21 09 5c 20 49 6e 69 |PC..over| !.\ Ini|
|00002030| 74 69 61 6c 20 72 74 6e | 20 61 64 64 72 0d 09 09 |tial rtn| addr...|
|00002040| 09 09 09 73 70 74 72 20 | 21 09 5c 20 49 6e 69 74 |...sptr |!.\ Init|
|00002050| 69 61 6c 20 41 37 20 3d | 20 72 74 6e 20 73 74 6b |ial A7 =| rtn stk|
|00002060| 20 70 74 72 0d 09 20 20 | 2d 34 20 2b 2b 3e 20 73 | ptr.. |-4 ++> s|
|00002070| 70 74 72 09 6d 6f 64 62 | 61 73 65 09 09 73 70 74 |ptr.modb|ase..spt|
|00002080| 72 20 21 09 5c 20 49 6e | 69 74 69 61 6c 20 41 35 |r !.\ In|itial A5|
|00002090| 20 3d 20 6d 6f 64 62 61 | 73 65 0d 09 20 20 2d 34 | = modba|se.. -4|
|000020a0| 20 2b 2b 3e 20 73 70 74 | 72 09 2d 31 09 09 73 70 | ++> spt|r.-1..sp|
|000020b0| 74 72 20 21 09 5c 20 49 | 6e 69 74 69 61 6c 20 41 |tr !.\ I|nitial A|
|000020c0| 32 20 2d 20 68 65 72 65 | 27 73 20 68 6f 70 69 6e |2 - here|'s hopin|
|000020d0| 67 21 0d 09 2d 31 30 34 | 20 2b 2b 3e 20 73 70 74 |g!..-104| ++> spt|
|000020e0| 72 09 09 09 09 5c 20 52 | 6f 6f 6d 20 66 6f 72 20 |r....\ R|oom for |
|000020f0| 44 32 2d 44 37 20 61 6e | 64 20 45 78 74 72 61 4c |D2-D7 an|d ExtraL|
|00002100| 6f 63 61 6c 73 0d 09 73 | 70 74 72 20 20 70 75 74 |ocals..s|ptr put|
|00002110| 3a 20 5e 53 50 0d 09 73 | 6c 65 65 70 3a 20 73 65 |: ^SP..s|leep: se|
|00002120| 6c 66 20 20 3b 6d 0d 0d | 3a 6d 20 52 45 53 45 54 |lf ;m..|:m RESET|
|00002130| 3a 0d 09 61 76 61 69 6c | 61 62 6c 65 20 20 70 75 |:..avail|able pu|
|00002140| 74 3a 20 73 74 61 74 75 | 73 20 20 20 3b 6d 0d 0d |t: statu|s ;m..|
|00002150| 3a 6d 20 44 49 53 50 4c | 41 43 45 3a 20 20 7b 20 |:m DISPL|ACE: { |
|00002160| 64 69 73 74 20 2d 2d 20 | 7d 0d 09 64 69 73 74 20 |dist -- |}..dist |
|00002170| 2d 3a 20 5e 53 50 0d 09 | 64 69 73 74 20 2d 3a 20 |-: ^SP..|dist -: |
|00002180| 74 53 50 30 0d 09 64 69 | 73 74 20 2d 3a 20 74 52 |tSP0..di|st -: tR|
|00002190| 50 30 20 20 3b 6d 0d 09 | 0d 5c 20 4e 45 57 3a 20 |P0 ;m..|.\ NEW: |
|000021a0| 73 65 74 73 20 75 70 20 | 76 61 72 69 6f 75 73 20 |sets up |various |
|000021b0| 69 74 65 6d 73 20 69 6e | 20 74 68 69 73 20 74 61 |items in| this ta|
|000021c0| 73 6b 20 6f 62 6a 65 63 | 74 2c 20 77 68 69 63 68 |sk objec|t, which|
|000021d0| 20 61 72 65 20 64 65 70 | 65 6e 64 65 6e 74 20 6f | are dep|endent o|
|000021e0| 6e 0d 5c 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |n.\ the |current |
|000021f0| 4d 6f 70 73 20 62 61 73 | 65 20 61 6e 64 20 73 74 |Mops bas|e and st|
|00002200| 61 63 6b 20 6c 6f 63 61 | 74 69 6f 6e 2e 20 20 54 |ack loca|tion. T|
|00002210| 68 65 73 65 20 63 61 6e | 27 74 20 62 65 20 64 65 |hese can|'t be de|
|00002220| 74 65 72 6d 69 6e 65 64 | 0d 5c 20 75 6e 74 69 6c |termined|.\ until|
|00002230| 20 72 75 6e 20 74 69 6d | 65 2c 20 65 73 70 65 63 | run tim|e, espec|
|00002240| 69 61 6c 6c 79 20 75 6e | 64 65 72 20 4d 75 6c 74 |ially un|der Mult|
|00002250| 69 46 69 6e 64 65 72 2e | 20 20 45 61 63 68 20 74 |iFinder.| Each t|
|00002260| 61 73 6b 20 6d 75 73 74 | 20 62 65 0d 5c 20 69 6e |ask must| be.\ in|
|00002270| 69 74 69 61 6c 69 7a 65 | 64 20 61 74 20 72 75 6e |itialize|d at run|
|00002280| 20 74 69 6d 65 20 77 69 | 74 68 20 4e 45 57 3a 2c | time wi|th NEW:,|
|00002290| 20 73 74 61 72 74 69 6e | 67 20 77 69 74 68 20 46 | startin|g with F|
|000022a0| 4f 52 45 47 52 4f 55 4e | 44 2e 20 20 4e 6f 74 65 |OREGROUN|D. Note|
|000022b0| 3a 0d 5c 20 46 4f 52 45 | 47 52 4f 55 4e 44 20 4d |:.\ FORE|GROUND M|
|000022c0| 55 53 54 20 42 45 20 46 | 49 52 53 54 2e 0d 0d 3a |UST BE F|IRST...:|
|000022d0| 6d 20 4e 45 57 3a 0d 09 | 5b 27 5d 20 72 65 73 74 |m NEW:..|['] rest|
|000022e0| 61 72 74 20 20 70 75 74 | 3a 20 5e 72 65 73 74 61 |art put|: ^resta|
|000022f0| 72 74 0d 09 74 68 69 73 | 5f 74 61 73 6b 20 20 6e |rt..this|_task n|
|00002300| 69 6c 50 20 3d 0d 09 49 | 46 20 20 5c 20 54 68 69 |ilP =..I|F \ Thi|
|00002310| 73 20 69 73 20 74 68 65 | 20 66 69 72 73 74 20 6f |s is the| first o|
|00002320| 6e 65 2c 20 69 2e 65 20 | 46 4f 52 45 47 52 4f 55 |ne, i.e |FOREGROU|
|00002330| 4e 44 0d 09 09 5e 62 61 | 73 65 20 20 73 65 74 6e |ND...^ba|se setn|
|00002340| 65 78 74 3a 20 73 65 6c | 66 0d 09 09 5e 62 61 73 |ext: sel|f...^bas|
|00002350| 65 20 20 2d 3e 20 74 68 | 69 73 5f 74 61 73 6b 09 |e -> th|is_task.|
|00002360| 09 5c 20 50 6f 69 6e 74 | 20 4c 49 4e 4b 20 74 6f |.\ Point| LINK to|
|00002370| 20 6f 75 72 73 65 6c 76 | 65 73 0d 09 09 73 70 40 | ourselv|es...sp@|
|00002380| 20 2d 3e 20 73 74 70 09 | 09 09 5c 20 53 65 74 20 | -> stp.|..\ Set |
|00002390| 69 6e 69 74 69 61 6c 20 | 73 74 70 20 72 65 61 64 |initial |stp read|
|000023a0| 79 20 66 6f 72 20 62 61 | 63 6b 67 64 20 74 61 73 |y for ba|ckgd tas|
|000023b0| 6b 73 0d 09 09 53 50 30 | 20 20 70 75 74 3a 20 74 |ks...SP0| put: t|
|000023c0| 53 50 30 0d 09 09 52 50 | 30 20 20 70 75 74 3a 20 |SP0...RP|0 put: |
|000023d0| 74 52 50 30 0d 09 09 52 | 50 30 20 2d 3e 20 72 65 |tRP0...R|P0 -> re|
|000023e0| 61 6c 5f 52 50 30 0d 09 | 09 77 61 6b 65 3a 20 73 |al_RP0..|.wake: s|
|000023f0| 65 6c 66 0d 09 45 4c 53 | 45 0d 09 09 52 5f 73 70 |elf..ELS|E...R_sp|
|00002400| 61 63 65 20 53 5f 73 70 | 61 63 65 20 2b 20 20 64 |ace S_sp|ace + d|
|00002410| 75 70 20 20 6d 6f 76 65 | 5f 74 61 73 6b 73 0d 09 |up move|_tasks..|
|00002420| 09 74 68 69 73 5f 74 61 | 73 6b 20 2d 3e 20 74 73 |.this_ta|sk -> ts|
|00002430| 6b 31 09 09 5c 20 4f 75 | 67 68 74 20 74 6f 20 62 |k1..\ Ou|ght to b|
|00002440| 65 20 46 6f 72 65 67 72 | 6f 75 6e 64 0d 09 09 42 |e Foregr|ound...B|
|00002450| 45 47 49 4e 0d 09 09 09 | 64 75 70 20 20 64 69 73 |EGIN....|dup dis|
|00002460| 70 6c 61 63 65 3a 20 74 | 73 6b 31 0d 09 09 09 6e |place: t|sk1....n|
|00002470| 65 78 74 3a 20 74 73 6b | 31 20 20 2d 3e 20 74 73 |ext: tsk|1 -> ts|
|00002480| 6b 31 0d 09 09 09 74 73 | 6b 31 20 74 68 69 73 5f |k1....ts|k1 this_|
|00002490| 74 61 73 6b 20 3d 0d 09 | 09 55 4e 54 49 4c 20 20 |task =..|.UNTIL |
|000024a0| 64 72 6f 70 0d 09 09 6e | 65 78 74 3a 20 74 68 69 |drop...n|ext: thi|
|000024b0| 73 5f 74 61 73 6b 20 20 | 73 65 74 6e 65 78 74 3a |s_task |setnext:|
|000024c0| 20 73 65 6c 66 0d 09 09 | 5e 62 61 73 65 20 20 73 | self...|^base s|
|000024d0| 65 74 6e 65 78 74 3a 20 | 74 68 69 73 5f 74 61 73 |etnext: |this_tas|
|000024e0| 6b 09 5c 20 4c 69 6e 6b | 20 6f 75 72 73 65 6c 76 |k.\ Link| ourselv|
|000024f0| 65 73 20 69 6e 74 6f 20 | 63 68 61 69 6e 0d 09 09 |es into |chain...|
|00002500| 72 65 61 6c 5f 52 50 30 | 20 20 64 75 70 09 70 75 |real_RP0| dup.pu|
|00002510| 74 3a 20 74 52 50 30 0d | 09 09 52 5f 73 70 61 63 |t: tRP0.|..R_spac|
|00002520| 65 20 2d 09 70 75 74 3a | 20 74 53 50 30 0d 09 09 |e -.put:| tSP0...|
|00002530| 61 76 61 69 6c 61 62 6c | 65 20 20 70 75 74 3a 20 |availabl|e put: |
|00002540| 73 74 61 74 75 73 0d 09 | 09 5b 27 5d 20 63 72 61 |status..|.['] cra|
|00002550| 73 68 20 20 61 73 73 69 | 67 6e 3a 20 73 65 6c 66 |sh assi|gn: self|
|00002560| 09 20 20 5c 20 49 6e 20 | 63 61 73 65 20 77 65 20 |. \ In |case we |
|00002570| 77 61 6b 65 3a 20 70 72 | 65 6d 61 74 75 72 65 6c |wake: pr|ematurel|
|00002580| 79 0d 09 09 61 76 61 69 | 6c 61 62 6c 65 20 20 70 |y...avai|lable p|
|00002590| 75 74 3a 20 73 74 61 74 | 75 73 09 20 20 5c 20 6e |ut: stat|us. \ n|
|000025a0| 6f 74 20 72 65 61 6c 6c | 79 20 61 73 6c 65 65 70 |ot reall|y asleep|
|000025b0| 0d 09 54 48 45 4e 20 20 | 3b 6d 0d 0d 3a 6d 20 2e |..THEN |;m..:m .|
|000025c0| 51 3a 0d 09 67 65 74 3a | 20 71 75 65 75 65 20 20 |Q:..get:| queue |
|000025d0| 2d 3e 20 74 73 6b 31 0d | 09 74 73 6b 31 20 6e 69 |-> tsk1.|.tsk1 ni|
|000025e0| 6c 50 20 3d 20 20 49 46 | 20 20 2e 22 20 65 6d 70 |lP = IF| ." emp|
|000025f0| 74 79 22 20 20 45 58 49 | 54 20 20 54 48 45 4e 0d |ty" EXI|T THEN.|
|00002600| 09 42 45 47 49 4e 0d 09 | 09 74 73 6b 31 20 6e 69 |.BEGIN..|.tsk1 ni|
|00002610| 6c 50 20 3d 20 20 3f 45 | 58 49 54 0d 09 09 2e 69 |lP = ?E|XIT....i|
|00002620| 64 3a 20 74 73 6b 31 20 | 20 73 70 61 63 65 20 20 |d: tsk1 | space |
|00002630| 74 73 6b 31 20 2e 68 20 | 73 70 61 63 65 0d 09 09 |tsk1 .h |space...|
|00002640| 6e 65 78 74 71 3a 20 74 | 73 6b 31 20 20 2d 3e 20 |nextq: t|sk1 -> |
|00002650| 74 73 6b 31 0d 09 41 47 | 41 49 4e 20 20 3b 6d 0d |tsk1..AG|AIN ;m.|
|00002660| 0d 3a 6d 20 2e 53 54 41 | 54 55 53 3a 0d 09 31 30 |.:m .STA|TUS:..10|
|00002670| 30 30 20 20 67 65 74 3a | 20 73 74 61 74 75 73 20 |00 get:| status |
|00002680| 20 67 65 74 49 6e 64 53 | 74 72 20 20 74 79 70 65 | getIndS|tr type|
|00002690| 20 20 3b 6d 0d 0d 3a 6d | 20 44 55 4d 50 3a 0d 09 | ;m..:m| DUMP:..|
|000026a0| 2e 63 6c 61 73 73 3a 20 | 73 65 6c 66 20 20 33 20 |.class: |self 3 |
|000026b0| 73 70 61 63 65 73 20 20 | 2e 69 64 3a 20 73 65 6c |spaces |.id: sel|
|000026c0| 66 0d 09 2e 22 20 20 20 | 73 74 61 74 75 73 3a 20 |f..." |status: |
|000026d0| 22 20 20 2e 73 74 61 74 | 75 73 3a 20 73 65 6c 66 |" .stat|us: self|
|000026e0| 0d 09 2e 22 20 20 20 71 | 75 65 75 65 3a 20 22 20 |..." q|ueue: " |
|000026f0| 20 20 2e 71 3a 20 73 65 | 6c 66 20 20 63 72 20 20 | .q: se|lf cr |
|00002700| 3b 6d 0d 0d 0d 3a 6d 20 | 43 4c 41 53 53 49 4e 49 |;m...:m |CLASSINI|
|00002710| 54 3a 0d 09 71 4a 4d 50 | 20 20 70 75 74 3a 20 4a |T:..qJMP| put: J|
|00002720| 4d 50 5f 63 6f 64 65 0d | 09 6e 69 6c 50 20 20 70 |MP_code.|.nilP p|
|00002730| 75 74 3a 20 71 75 65 75 | 65 20 20 3b 6d 0d 0d 3b |ut: queu|e ;m..;|
|00002740| 63 6c 61 73 73 0d 0d 5c | 20 4e 6f 77 20 63 72 65 |class..\| Now cre|
|00002750| 61 74 65 20 74 61 73 6b | 20 46 4f 52 45 47 52 4f |ate task| FOREGRO|
|00002760| 55 4e 44 20 61 73 20 74 | 68 65 20 63 75 72 72 65 |UND as t|he curre|
|00002770| 6e 74 6c 79 20 72 75 6e | 6e 69 6e 67 20 74 61 73 |ntly run|ning tas|
|00002780| 6b 3a 0d 0d 74 61 73 6b | 20 20 46 4f 52 45 47 52 |k:..task| FOREGR|
|00002790| 4f 55 4e 44 0d 0d 5c 20 | 4e 6f 77 20 77 65 20 73 |OUND..\ |Now we s|
|000027a0| 65 74 20 75 70 20 74 68 | 65 20 75 73 65 72 20 68 |et up th|e user h|
|000027b0| 6f 6f 6b 73 20 73 6f 20 | 74 68 61 74 20 69 66 20 |ooks so |that if |
|000027c0| 77 65 20 61 72 65 20 6d | 75 6c 74 69 74 61 73 6b |we are m|ultitask|
|000027d0| 69 6e 67 2c 20 6f 74 68 | 65 72 20 74 61 73 6b 73 |ing, oth|er tasks|
|000027e0| 0d 5c 20 63 61 6e 20 6b | 65 65 70 20 72 75 6e 6e |.\ can k|eep runn|
|000027f0| 69 6e 67 20 77 68 69 6c | 65 20 77 69 6e 64 6f 77 |ing whil|e window|
|00002800| 73 20 61 72 65 20 62 65 | 69 6e 67 20 64 72 61 67 |s are be|ing drag|
|00002810| 67 65 64 20 6f 72 20 6d | 65 6e 75 73 20 62 65 69 |ged or m|enus bei|
|00002820| 6e 67 20 73 65 6c 65 63 | 74 65 64 2e 0d 0d 24 20 |ng selec|ted...$ |
|00002830| 41 33 30 09 63 6f 6e 73 | 74 61 6e 74 09 4d 45 4e |A30.cons|tant.MEN|
|00002840| 55 48 4f 4f 4b 0d 24 20 | 39 46 36 09 63 6f 6e 73 |UHOOK.$ |9F6.cons|
|00002850| 74 61 6e 74 09 44 52 41 | 47 48 4f 4f 4b 0d 0d 3a |tant.DRA|GHOOK..:|
|00002860| 70 72 6f 63 20 52 55 4e | 5f 54 48 45 4d 20 20 20 |proc RUN|_THEM |
|00002870| 73 75 73 70 65 6e 64 20 | 20 20 3b 70 72 6f 63 0d |suspend | ;proc.|
|00002880| 0d 3a 70 72 6f 63 20 28 | 53 46 44 29 0d 09 64 72 |.:proc (|SFD)..dr|
|00002890| 6f 70 09 09 5c 20 44 6c | 67 20 70 74 72 20 6e 6f |op..\ Dl|g ptr no|
|000028a0| 74 20 6e 65 65 64 65 64 | 0d 09 69 2d 3e 6c 20 3e |t needed|..i->l >|
|000028b0| 72 09 09 5c 20 49 74 65 | 6d 20 23 0d 09 77 6f 72 |r..\ Ite|m #..wor|
|000028c0| 64 30 20 64 72 6f 70 09 | 5c 20 4c 65 66 74 20 66 |d0 drop.|\ Left f|
|000028d0| 6f 72 20 72 65 74 75 72 | 6e 20 72 65 73 75 6c 74 |or retur|n result|
|000028e0| 20 2d 20 64 6f 6e 27 74 | 20 6e 65 65 64 20 69 74 | - don't| need it|
|000028f0| 20 6e 6f 77 0d 09 72 20 | 31 30 30 20 3d 0d 09 49 | now..r |100 =..I|
|00002900| 46 20 20 28 20 6e 75 6c | 6c 20 65 76 65 6e 74 20 |F ( nul|l event |
|00002910| 29 20 20 6e 65 78 74 5f | 74 61 73 6b 20 20 54 48 |) next_|task TH|
|00002920| 45 4e 0d 09 72 3e 20 6d | 61 6b 65 69 6e 74 20 20 |EN..r> m|akeint |
|00002930| 3b 70 72 6f 63 0d 0d 0d | 5c 20 4d 55 4c 54 49 20 |;proc...|\ MULTI |
|00002940| 61 6e 64 20 53 49 4e 47 | 4c 45 20 74 75 72 6e 20 |and SING|LE turn |
|00002950| 6d 75 6c 74 69 74 61 73 | 6b 69 6e 67 20 6f 6e 20 |multitas|king on |
|00002960| 61 6e 64 20 6f 66 66 20 | 72 65 73 70 65 63 74 69 |and off |respecti|
|00002970| 76 65 6c 79 2e 20 20 4d | 55 4c 54 49 2c 20 61 6d |vely. M|ULTI, am|
|00002980| 6f 6e 67 0d 5c 20 6f 74 | 68 65 72 20 74 68 69 6e |ong.\ ot|her thin|
|00002990| 67 73 2c 20 72 65 64 69 | 72 65 63 74 73 20 50 41 |gs, redi|rects PA|
|000029a0| 55 53 45 20 74 6f 20 6a | 75 73 74 20 73 77 69 74 |USE to j|ust swit|
|000029b0| 63 68 20 74 61 73 6b 73 | 2e 20 20 57 69 74 68 6f |ch tasks|. Witho|
|000029c0| 75 74 20 6d 75 6c 74 69 | 74 61 73 6b 69 6e 67 2c |ut multi|tasking,|
|000029d0| 0d 5c 20 77 65 20 6d 61 | 6b 65 20 50 41 55 53 45 |.\ we ma|ke PAUSE|
|000029e0| 20 63 61 6c 6c 20 6e 65 | 78 74 3a 20 66 45 76 65 | call ne|xt: fEve|
|000029f0| 6e 74 2c 20 62 75 74 20 | 77 69 74 68 20 6d 75 6c |nt, but |with mul|
|00002a00| 74 69 74 61 73 6b 69 6e | 67 2c 20 74 68 69 73 20 |titaskin|g, this |
|00002a10| 62 65 63 6f 6d 65 73 0d | 5c 20 74 68 65 20 66 6f |becomes.|\ the fo|
|00002a20| 72 65 67 72 6f 75 6e 64 | 20 74 61 73 6b 27 73 20 |reground| task's |
|00002a30| 73 6f 6c 65 20 72 65 73 | 70 6f 6e 73 69 62 69 6c |sole res|ponsibil|
|00002a40| 69 74 79 2c 20 61 6e 64 | 20 77 65 20 6d 75 73 74 |ity, and| we must|
|00002a50| 6e 27 74 20 64 6f 20 69 | 74 20 61 6e 79 77 68 65 |n't do i|t anywhe|
|00002a60| 72 65 0d 5c 20 65 6c 73 | 65 2e 0d 0d 3a 20 4d 55 |re.\ els|e...: MU|
|00002a70| 4c 54 49 0d 09 5b 27 5d | 20 73 75 73 70 65 6e 64 |LTI..[']| suspend|
|00002a80| 20 20 2d 3e 20 6e 65 78 | 74 5f 74 61 73 6b 20 20 | -> nex|t_task |
|00002a90| 5b 27 5d 20 73 75 73 70 | 65 6e 64 20 20 2d 3e 20 |['] susp|end -> |
|00002aa0| 70 61 75 73 65 0d 09 5b | 27 5d 20 72 75 6e 5f 74 |pause..[|'] run_t|
|00002ab0| 68 65 6d 20 20 64 75 70 | 20 20 4d 65 6e 75 48 6f |hem dup| MenuHo|
|00002ac0| 6f 6b 20 21 20 20 44 72 | 61 67 48 6f 6f 6b 20 21 |ok ! Dr|agHook !|
|00002ad0| 0d 09 5b 27 5d 20 28 73 | 66 64 29 20 20 2d 3e 20 |..['] (s|fd) -> |
|00002ae0| 53 46 64 6c 67 48 6f 6f | 6b 0d 09 30 20 2d 3e 20 |SFdlgHoo|k..0 -> |
|00002af0| 73 6c 65 65 70 74 69 63 | 6b 73 20 20 3b 0d 0d 3a |sleeptic|ks ;..:|
|00002b00| 20 53 49 4e 47 4c 45 0d | 09 5b 27 5d 20 6e 75 6c | SINGLE.|.['] nul|
|00002b10| 6c 20 20 2d 3e 20 6e 65 | 78 74 5f 74 61 73 6b 20 |l -> ne|xt_task |
|00002b20| 20 5b 27 5d 20 28 70 61 | 75 73 65 29 20 20 2d 3e | ['] (pa|use) ->|
|00002b30| 20 70 61 75 73 65 0d 09 | 30 20 4d 65 6e 75 48 6f | pause..|0 MenuHo|
|00002b40| 6f 6b 20 21 20 20 30 20 | 44 72 61 67 48 6f 6f 6b |ok ! 0 |DragHook|
|00002b50| 20 21 0d 09 30 20 2d 3e | 20 53 46 64 6c 67 48 6f | !..0 ->| SFdlgHo|
|00002b60| 6f 6b 0d 09 32 30 20 2d | 3e 20 73 6c 65 65 70 74 |ok..20 -|> sleept|
|00002b70| 69 63 6b 73 20 20 3b 0d | 0d 0d 5c 20 54 61 73 6b |icks ;.|..\ Task|
|00002b80| 20 6d 61 6e 69 70 75 6c | 61 74 69 6f 6e 0d 0d 3a | manipul|ation..:|
|00002b90| 20 28 53 54 4f 50 29 09 | 09 28 73 6c 65 65 70 29 | (STOP).|.(sleep)|
|00002ba0| 3a 20 74 68 69 73 5f 74 | 61 73 6b 20 20 73 75 73 |: this_t|ask sus|
|00002bb0| 70 65 6e 64 20 20 20 3b | 0d 3a 20 53 54 4f 50 09 |pend ;|.: STOP.|
|00002bc0| 09 73 74 6f 70 70 65 64 | 20 20 73 65 74 53 74 61 |.stopped| setSta|
|00002bd0| 74 75 73 3a 20 74 68 69 | 73 5f 74 61 73 6b 0d 09 |tus: thi|s_task..|
|00002be0| 09 72 65 6c 65 61 73 65 | 51 3a 20 74 68 69 73 5f |.release|Q: this_|
|00002bf0| 74 61 73 6b 20 20 28 73 | 74 6f 70 29 20 20 20 3b |task (s|top) ;|
|00002c00| 0d 0d 3a 66 20 43 52 41 | 53 48 0d 09 42 45 47 49 |..:f CRA|SH..BEGI|
|00002c10| 4e 0d 5c 09 09 33 20 62 | 65 65 70 20 20 2e 22 20 |N.\..3 b|eep ." |
|00002c20| 21 21 20 6e 6f 20 63 6f | 64 65 20 61 73 73 69 67 |!! no co|de assig|
|00002c30| 6e 65 64 20 74 6f 20 74 | 61 73 6b 20 22 20 2e 69 |ned to t|ask " .i|
|00002c40| 64 3a 20 74 68 69 73 5f | 74 61 73 6b 0d 09 09 63 |d: this_|task...c|
|00002c50| 72 61 73 68 65 64 20 20 | 73 65 74 53 74 61 74 75 |rashed |setStatu|
|00002c60| 73 3a 20 74 68 69 73 5f | 74 61 73 6b 20 20 28 73 |s: this_|task (s|
|00002c70| 74 6f 70 29 0d 09 41 47 | 41 49 4e 20 20 3b 66 0d |top)..AG|AIN ;f.|
|00002c80| 0d 3a 66 20 4e 4f 57 48 | 45 52 45 09 5c 20 41 20 |.:f NOWH|ERE.\ A |
|00002c90| 72 75 6e 6e 69 6e 67 20 | 74 61 73 6b 20 61 74 20 |running |task at |
|00002ca0| 69 74 73 20 74 6f 70 20 | 6c 65 76 65 6c 20 68 61 |its top |level ha|
|00002cb0| 73 20 72 65 61 6c 6c 79 | 20 62 65 65 6e 20 63 61 |s really| been ca|
|00002cc0| 6c 6c 65 64 0d 09 09 5c | 20 66 72 6f 6d 20 6e 6f |lled...\| from no|
|00002cd0| 77 68 65 72 65 2e 20 20 | 53 6f 20 77 65 20 64 65 |where. |So we de|
|00002ce0| 66 69 6e 65 20 4e 4f 57 | 48 45 52 45 20 73 6f 20 |fine NOW|HERE so |
|00002cf0| 74 68 61 74 20 69 66 20 | 69 74 20 72 65 74 75 72 |that if |it retur|
|00002d00| 6e 73 2c 0d 09 09 5c 20 | 69 74 20 77 69 6c 6c 20 |ns,...\ |it will |
|00002d10| 61 63 74 75 61 6c 6c 79 | 20 67 6f 20 74 6f 20 4e |actually| go to N|
|00002d20| 4f 57 48 45 52 45 2c 20 | 77 68 69 63 68 20 69 73 |OWHERE, |which is|
|00002d30| 20 73 6f 6d 65 77 68 65 | 72 65 2c 20 6e 6f 74 20 | somewhe|re, not |
|00002d40| 6a 75 73 74 0d 09 09 5c | 20 61 6e 79 77 68 65 72 |just...\| anywher|
|00002d50| 65 2e 20 20 28 49 20 68 | 6f 70 65 20 74 68 61 74 |e. (I h|ope that|
|00002d60| 27 73 20 63 6c 65 61 72 | 2e 29 0d 09 09 5c 20 57 |'s clear|.)...\ W|
|00002d70| 65 20 64 65 66 69 6e 65 | 20 74 68 69 73 20 61 73 |e define| this as|
|00002d80| 20 6e 6f 72 6d 61 6c 20 | 74 65 72 6d 69 6e 61 74 | normal |terminat|
|00002d90| 69 6f 6e 20 6f 66 20 61 | 20 74 61 73 6b 2e 20 20 |ion of a| task. |
|00002da0| 41 6e 79 20 61 74 74 65 | 6d 70 74 0d 09 09 5c 20 |Any atte|mpt...\ |
|00002db0| 20 74 6f 20 77 61 6b 65 | 3a 20 61 20 74 65 72 6d | to wake|: a term|
|00002dc0| 69 6e 61 74 65 64 20 74 | 61 73 6b 20 63 61 75 73 |inated t|ask caus|
|00002dd0| 65 73 20 43 52 41 53 48 | 20 74 6f 20 62 65 20 65 |es CRASH| to be e|
|00002de0| 78 65 63 75 74 65 64 2e | 0d 0d 09 74 65 72 6d 69 |xecuted.|...termi|
|00002df0| 6e 61 74 65 64 20 20 73 | 65 74 53 74 61 74 75 73 |nated s|etStatus|
|00002e00| 3a 20 74 68 69 73 5f 74 | 61 73 6b 0d 09 72 65 6c |: this_t|ask..rel|
|00002e10| 65 61 73 65 51 3a 20 74 | 68 69 73 5f 74 61 73 6b |easeQ: t|his_task|
|00002e20| 20 20 28 73 74 6f 70 29 | 20 20 63 72 61 73 68 20 | (stop)| crash |
|00002e30| 20 3b 66 0d 0d 0d 3a 20 | 2e 54 41 53 4b 53 0d 09 | ;f...: |.TASKS..|
|00002e40| 66 6f 72 65 67 72 6f 75 | 6e 64 0d 09 42 45 47 49 |foregrou|nd..BEGI|
|00002e50| 4e 0d 09 09 64 75 70 20 | 64 75 6d 70 3a 20 2a 2a |N...dup |dump: **|
|00002e60| 20 20 6e 65 78 74 3a 20 | 2a 2a 0d 09 09 64 75 70 | next: |**...dup|
|00002e70| 20 66 6f 72 65 67 72 6f | 75 6e 64 20 3d 0d 09 55 | foregro|und =..U|
|00002e80| 4e 54 49 4c 20 20 64 72 | 6f 70 20 20 20 3b 0d 0d |NTIL dr|op ;..|
|00002e90| 3a 20 43 4c 54 53 4b 09 | 09 5c 20 54 68 69 73 20 |: CLTSK.|.\ This |
|00002ea0| 69 73 20 63 61 6c 6c 65 | 64 20 6f 6e 20 61 6e 20 |is calle|d on an |
|00002eb0| 61 62 6f 72 74 2e 20 20 | 57 65 20 65 78 65 63 75 |abort. |We execu|
|00002ec0| 74 65 20 74 68 65 20 6e | 6f 72 6d 61 6c 0d 09 09 |te the n|ormal...|
|00002ed0| 5c 20 61 62 6f 72 74 20 | 61 63 74 69 6f 6e 2c 20 |\ abort |action, |
|00002ee0| 74 68 65 6e 20 73 74 6f | 70 20 74 68 65 20 63 75 |then sto|p the cu|
|00002ef0| 72 72 65 6e 74 6c 79 0d | 09 09 5c 20 72 75 6e 6e |rrently.|..\ runn|
|00002f00| 69 6e 67 20 74 61 73 6b | 20 61 6e 64 20 73 65 74 |ing task| and set|
|00002f10| 20 69 74 73 20 73 74 61 | 74 75 73 20 74 6f 20 63 | its sta|tus to c|
|00002f20| 72 61 73 68 65 64 2c 20 | 75 6e 6c 65 73 73 0d 09 |rashed, |unless..|
|00002f30| 09 5c 20 69 74 27 73 20 | 46 6f 72 65 67 72 6f 75 |.\ it's |Foregrou|
|00002f40| 6e 64 20 28 77 68 69 63 | 68 20 77 65 27 64 20 62 |nd (whic|h we'd b|
|00002f50| 65 74 74 65 72 20 6e 6f | 74 20 73 74 6f 70 29 21 |etter no|t stop)!|
|00002f60| 0d 0d 09 63 6c 33 09 09 | 09 09 5c 20 50 72 65 76 |...cl3..|..\ Prev|
|00002f70| 69 6f 75 73 20 61 62 6f | 72 74 20 61 63 74 69 6f |ious abo|rt actio|
|00002f80| 6e 0d 09 74 68 69 73 5f | 74 61 73 6b 20 6e 69 6c |n..this_|task nil|
|00002f90| 50 20 3d 20 20 3f 45 58 | 49 54 09 09 5c 20 4f 75 |P = ?EX|IT..\ Ou|
|00002fa0| 74 20 69 66 20 6e 6f 74 | 68 69 6e 67 20 69 6e 69 |t if not|hing ini|
|00002fb0| 74 69 61 6c 69 7a 65 64 | 0d 09 74 68 69 73 5f 74 |tialized|..this_t|
|00002fc0| 61 73 6b 20 66 6f 72 65 | 67 72 6f 75 6e 64 20 3d |ask fore|ground =|
|00002fd0| 20 20 3f 45 58 49 54 09 | 5c 20 4f 72 20 69 66 20 | ?EXIT.|\ Or if |
|00002fe0| 74 68 69 73 20 69 73 20 | 66 6f 72 65 67 72 6f 75 |this is |foregrou|
|00002ff0| 6e 64 0d 09 63 72 61 73 | 68 65 64 20 20 73 65 74 |nd..cras|hed set|
|00003000| 53 74 61 74 75 73 3a 20 | 74 68 69 73 5f 74 61 73 |Status: |this_tas|
|00003010| 6b 20 20 5b 27 5d 20 63 | 72 61 73 68 20 3e 72 0d |k ['] c|rash >r.|
|00003020| 09 72 65 6c 65 61 73 65 | 51 3a 20 74 68 69 73 5f |.release|Q: this_|
|00003030| 74 61 73 6b 20 20 28 73 | 74 6f 70 29 20 20 3b 0d |task (s|top) ;.|
|00003040| 0d 27 20 63 6c 54 73 6b | 20 2d 3e 20 61 62 6f 72 |.' clTsk| -> abor|
|00003050| 74 56 65 63 0d 0d 5c 20 | 65 6e 64 6c 6f 61 64 0d |tVec..\ |endload.|
|00003060| 0d 5c 20 54 45 53 54 49 | 4e 47 3a 0d 0d 74 61 73 |.\ TESTI|NG:..tas|
|00003070| 6b 20 20 54 31 20 20 20 | 74 61 73 6b 20 20 54 32 |k T1 |task T2|
|00003080| 0d 0d 20 30 20 76 61 6c | 75 65 09 43 4e 54 0d 31 |.. 0 val|ue.CNT.1|
|00003090| 30 20 76 61 6c 75 65 09 | 43 4e 54 31 0d 20 30 20 |0 value.|CNT1. 0 |
|000030a0| 76 61 6c 75 65 09 43 4e | 54 32 0d 31 30 20 76 61 |value.CN|T2.10 va|
|000030b0| 6c 75 65 09 43 4e 54 33 | 0d 0d 66 69 6c 65 20 46 |lue.CNT3|..file F|
|000030c0| 0d 0d 3a 20 48 41 48 41 | 0d 09 31 20 32 20 33 0d |..: HAHA|..1 2 3.|
|000030d0| 09 42 45 47 49 4e 0d 09 | 09 6e 65 78 74 5f 74 61 |.BEGIN..|.next_ta|
|000030e0| 73 6b 20 20 63 6e 74 0d | 09 09 4e 49 46 09 35 30 |sk cnt.|..NIF.50|
|000030f0| 30 20 2d 3e 20 63 6e 74 | 20 20 2d 31 20 2b 2b 3e |0 -> cnt| -1 ++>|
|00003100| 20 63 6e 74 31 0d 09 09 | 09 2e 22 20 68 61 68 61 | cnt1...|.." haha|
|00003110| 20 22 20 63 72 0d 5c 09 | 09 09 77 61 69 74 69 6e | " cr.\.|..waitin|
|00003120| 67 20 77 61 69 74 3a 20 | 74 32 0d 09 09 45 4c 53 |g wait: |t2...ELS|
|00003130| 45 09 2d 31 20 2b 2b 3e | 20 63 6e 74 0d 09 09 54 |E.-1 ++>| cnt...T|
|00003140| 48 45 4e 0d 09 63 6e 74 | 31 0d 09 4e 55 4e 54 49 |HEN..cnt|1..NUNTI|
|00003150| 4c 20 20 3b 0d 0d 3a 20 | 48 4f 48 4f 0d 09 2d 34 |L ;..: |HOHO..-4|
|00003160| 20 2d 35 20 2d 36 0d 09 | 42 45 47 49 4e 0d 09 09 | -5 -6..|BEGIN...|
|00003170| 6e 65 78 74 5f 74 61 73 | 6b 20 20 63 6e 74 32 0d |next_tas|k cnt2.|
|00003180| 09 09 4e 49 46 0d 09 09 | 09 38 30 30 20 2d 3e 20 |..NIF...|.800 -> |
|00003190| 63 6e 74 32 20 20 2d 31 | 20 2b 2b 3e 20 63 6e 74 |cnt2 -1| ++> cnt|
|000031a0| 33 0d 09 09 09 2e 22 20 | 68 6f 68 6f 20 22 20 63 |3....." |hoho " c|
|000031b0| 72 0d 5c 09 09 09 77 61 | 69 74 69 6e 67 20 77 61 |r.\...wa|iting wa|
|000031c0| 69 74 3a 20 74 31 0d 09 | 09 45 4c 53 45 20 20 2d |it: t1..|.ELSE -|
|000031d0| 31 20 2b 2b 3e 20 63 6e | 74 32 0d 09 09 54 48 45 |1 ++> cn|t2...THE|
|000031e0| 4e 0d 09 63 6e 74 33 0d | 09 4e 55 4e 54 49 4c 20 |N..cnt3.|.NUNTIL |
|000031f0| 20 3b 0d 0d 3a 20 47 4f | 0d 09 6e 65 77 3a 20 66 | ;..: GO|..new: f|
|00003200| 6f 72 65 67 72 6f 75 6e | 64 20 20 6e 65 77 3a 20 |oregroun|d new: |
|00003210| 74 31 20 20 6e 65 77 3a | 20 74 32 0d 5c 09 5b 27 |t1 new:| t2.\.['|
|00003220| 5d 20 68 61 68 61 20 20 | 61 73 73 69 67 6e 3a 20 |] haha |assign: |
|00003230| 74 31 0d 5c 09 5b 27 5d | 20 68 6f 68 6f 20 20 61 |t1.\.[']| hoho a|
|00003240| 73 73 69 67 6e 3a 20 74 | 32 0d 09 77 61 6b 65 3a |ssign: t|2..wake:|
|00003250| 20 74 31 20 20 28 20 77 | 61 6b 65 3a 20 74 32 20 | t1 ( w|ake: t2 |
|00003260| 29 0d 09 6d 75 6c 74 69 | 0d 5c 09 27 74 79 70 65 |)..multi|.\.'type|
|00003270| 20 54 45 58 54 20 31 20 | 20 73 74 64 47 65 74 3a | TEXT 1 | stdGet:|
|00003280| 20 66 20 20 64 72 6f 70 | 0d 3b 0d 0d 3a 20 51 51 | f drop|.;..: QQ|
|00003290| 09 77 61 6b 65 3a 20 74 | 32 20 20 3b 0d 00 00 00 |.wake: t|2 ;....|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003300| 00 00 01 00 00 00 0d 34 | 00 00 0c 34 00 00 01 4e |.......4|...4...N|
|00003310| 14 3a a6 88 85 68 82 57 | 54 22 41 17 00 ff 16 fe |.:...h.W|T"A.....|
|00003320| 00 12 05 00 75 14 68 81 | 43 63 88 a3 18 85 77 11 |....u.h.|Cc....w.|
|00003330| 0c 4d 75 6c 74 69 74 61 | 73 6b 69 6e 67 a6 02 00 |.Multita|sking...|
|00003340| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00003350| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00003360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003370| 00 00 ab 06 23 41 00 00 | 00 00 00 00 0e 82 11 a8 |....#A..|........|
|00003380| 19 94 42 91 22 17 00 00 | ff 14 fc 00 10 07 11 75 |..B."...|.......u|
|00003390| 14 29 14 1a 68 52 93 44 | 25 21 50 00 00 ff 14 fc |.)..hR.D|%!P.....|
|000033a0| 00 10 07 51 22 51 42 dd | d6 66 93 93 34 23 17 70 |...Q"QB.|.f..4#.p|
|000033b0| 00 00 ff 14 fc 00 10 05 | 52 22 11 15 dd 22 22 21 |........|R"...""!|
|000033c0| 39 39 31 17 70 00 00 ff | 14 fc 00 0c 51 21 69 21 |991.p...|....Q!i!|
|000033d0| 15 55 54 15 12 29 99 32 | 51 fe 00 00 ff 14 fc 00 |.UT..).2|Q.......|
|000033e0| 0c 11 33 91 22 11 55 51 | 57 11 39 32 93 21 fe 00 |..3.".UQ|W.92.!..|
|000033f0| 00 ff 14 fc 00 04 12 39 | 99 92 21 fe 11 04 12 39 |.......9|..!....9|
|00003400| 00 00 00 41 03 00 80 00 | 00 00 03 33 2e 30 36 4e |...A....|...3.06N|
|00003410| 69 73 75 73 a8 20 33 2e | 30 20 46 69 6c 65 20 46 |isus. 3.|0 File F|
|00003420| 6f 72 6d 61 74 0d a9 50 | 61 72 61 67 6f 6e 20 43 |ormat..P|aragon C|
|00003430| 6f 6e 63 65 70 74 73 2c | 20 49 6e 63 2e 20 31 39 |oncepts,| Inc. 19|
|00003440| 38 38 2d 39 31 00 00 00 | 37 03 06 80 00 00 00 04 |88-91...|7.......|
|00003450| 33 2e 30 36 2b 4e 69 73 | 75 73 a8 20 33 2e 30 36 |3.06+Nis|us. 3.06|
|00003460| 0d a9 50 61 72 61 67 6f | 6e 20 43 6f 6e 63 65 70 |..Parago|n Concep|
|00003470| 74 73 2c 20 49 6e 63 2e | 20 31 39 38 38 2d 39 31 |ts, Inc.| 1988-91|
|00003480| 00 00 00 74 00 04 00 09 | 00 00 00 00 00 00 00 00 |...t....|........|
|00003490| 00 00 00 9c 30 78 00 00 | 00 00 00 00 00 00 00 00 |....0x..|........|
|000034a0| 00 00 00 9c 30 50 00 00 | 00 00 00 00 80 00 00 00 |....0P..|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 04 |........|........|
|000034c0| 00 09 00 00 00 00 00 00 | 00 00 00 00 00 9c 2f e4 |........|....../.|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 9c 30 20 |........|......0 |
|000034e0| 00 00 00 00 00 00 80 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 10 00 05 04 6d |........|.......m|
|00003500| 6f 70 73 33 00 05 04 63 | 6f 64 65 75 00 00 00 10 |ops3...c|odeu....|
|00003510| 00 05 04 6d 6f 70 73 33 | 00 05 04 63 6f 64 65 75 |...mops3|...codeu|
|00003520| 00 00 00 04 00 00 00 00 | 00 00 02 b0 00 00 00 00 |........|........|
|00003530| 00 00 00 86 00 0c 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 02 1a 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 08 00 38 00 00 |........|.....8..|
|00003570| 01 00 00 00 00 63 00 00 | 01 00 00 00 00 8d 00 00 |.....c..|........|
|00003580| 01 00 00 00 00 b8 00 00 | 01 00 00 00 00 e2 00 00 |........|........|
|00003590| 01 00 00 00 01 1b 00 00 | 01 00 00 00 01 61 00 00 |........|.....a..|
|000035a0| 01 00 00 00 01 9a 00 00 | 01 00 00 00 04 6d 6f 70 |........|.....mop|
|000035b0| 73 b9 00 00 00 33 00 00 | 00 6e 00 0c 00 00 00 00 |s....3..|.n......|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 02 1a |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 05 00 38 00 00 01 00 | 00 00 00 71 00 00 01 00 |...8....|...q....|
|00003600| 00 00 00 ff 00 00 01 00 | 00 00 01 54 00 00 01 00 |........|...T....|
|00003610| 00 00 01 8c 00 00 01 00 | 00 00 04 63 6f 64 65 b9 |........|...code.|
|00003620| 00 00 00 4e 00 00 00 86 | 00 0c 00 00 00 00 00 00 |...N....|........|
|00003630| 00 00 00 00 00 00 00 00 | 00 00 00 00 02 1a 00 00 |........|........|
|00003640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 08 |........|........|
|00003660| 00 38 00 00 01 00 00 00 | 00 63 00 00 01 00 00 00 |.8......|.c......|
|00003670| 00 8d 00 00 01 00 00 00 | 00 b8 00 00 01 00 00 00 |........|........|
|00003680| 00 e2 00 00 01 00 00 00 | 01 1b 00 00 01 00 00 00 |........|........|
|00003690| 01 61 00 00 01 00 00 00 | 01 9a 00 00 01 00 00 00 |.a......|........|
|000036a0| 04 6d 6f 70 73 b9 00 00 | 00 52 00 00 00 6e 00 0c |.mops...|.R...n..|
|000036b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036c0| 00 00 02 1a 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000036e0| 00 00 00 00 00 05 00 38 | 00 00 01 00 00 00 00 71 |.......8|.......q|
|000036f0| 00 00 01 00 00 00 00 ff | 00 00 01 00 00 00 01 54 |........|.......T|
|00003700| 00 00 01 00 00 00 01 8c | 00 00 01 00 00 00 04 63 |........|.......c|
|00003710| 6f 64 65 b9 00 00 00 6a | 00 00 00 86 00 0c 00 00 |ode....j|........|
|00003720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003730| 02 1a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003750| 00 00 00 08 00 38 00 00 | 01 00 00 00 00 63 00 00 |.....8..|.....c..|
|00003760| 01 00 00 00 00 8d 00 00 | 01 00 00 00 00 b8 00 00 |........|........|
|00003770| 01 00 00 00 00 e2 00 00 | 01 00 00 00 01 1b 00 00 |........|........|
|00003780| 01 00 00 00 01 61 00 00 | 01 00 00 00 01 9a 00 00 |.....a..|........|
|00003790| 01 00 00 00 04 6d 6f 70 | 73 b9 7f ff ff ff 00 00 |.....mop|s.......|
|000037a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 5a |........|.......Z|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 21 00 00 |........|.....!..|
|000037f0| 00 00 00 01 00 00 00 21 | 00 02 00 00 00 00 00 00 |.......!|........|
|00003800| 00 21 00 10 00 00 00 01 | 00 00 00 21 00 10 00 01 |.!......|...!....|
|00003810| 00 00 00 00 00 33 00 00 | 00 00 00 02 00 00 00 4e |.....3..|.......N|
|00003820| 00 00 00 00 00 00 00 00 | 00 52 00 00 00 00 00 02 |........|.R......|
|00003830| 00 00 00 6a 00 00 00 00 | 00 00 00 00 01 26 00 00 |...j....|.....&..|
|00003840| 00 04 00 09 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 08 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003890| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038a0| 00 00 00 04 00 09 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 08 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 04 00 09 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 08 00 01 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 02 | 00 01 00 00 02 1a 00 0d |........|........|
|00003970| 0d 5a 61 70 66 20 44 69 | 6e 67 62 61 74 73 00 12 |.Zapf Di|ngbats..|
|00003980| 0d 5a 61 70 66 20 43 68 | 61 6e 63 65 72 79 00 f3 |.Zapf Ch|ancery..|
|00003990| 05 57 75 62 75 79 00 05 | 06 56 65 6e 69 63 65 ee |.Wubuy..|.Venice.|
|000039a0| 0a b0 07 54 69 6d 65 73 | 2d 57 00 14 05 54 69 6d |...Times|-W...Tim|
|000039b0| 65 73 00 17 06 53 79 6d | 62 6f 6c 14 00 e9 06 53 |es...Sym|bol....S|
|000039c0| 63 72 65 65 6e ff 09 9c | 0a 50 61 6c 61 74 69 6e |creen...|.Palatin|
|000039d0| 6f 2d 57 3f 00 10 08 50 | 61 6c 61 74 69 6e 6f ff |o-W?...P|alatino.|
|000039e0| 08 78 0f 4e 65 77 43 65 | 6e 74 53 63 68 6c 62 6b |.x.NewCe|ntSchlbk|
|000039f0| 2d 57 05 7f 11 4e 65 77 | 2d 42 61 73 6b 65 72 76 |-W...New|-Baskerv|
|00003a00| 69 6c 6c 65 2d 57 00 02 | 08 4e 65 77 20 59 6f 72 |ille-W..|.New Yor|
|00003a10| 6b 0a 00 22 12 4e 65 77 | 20 43 65 6e 74 75 72 79 |k..".New| Century|
|00003a20| 20 53 63 68 6c 62 6b 0a | 3a 68 0f 4e 65 77 20 42 | Schlbk.|:h.New B|
|00003a30| 61 73 6b 65 72 76 69 6c | 6c 65 00 0f 12 4e 20 48 |askervil|le...N H|
|00003a40| 65 6c 76 65 74 69 63 61 | 20 4e 61 72 72 6f 77 00 |elvetica| Narrow.|
|00003a50| 00 04 06 4d 6f 6e 61 63 | 6f 7f 00 06 06 4c 6f 6e |...Monac|o....Lon|
|00003a60| 64 6f 6e 05 12 3e 09 4a | 65 72 75 73 61 6c 65 6d |don..>.J|erusalem|
|00003a70| 00 f2 0b 48 65 6c 76 65 | 74 69 63 61 2d 57 00 15 |...Helve|tica-W..|
|00003a80| 09 48 65 6c 76 65 74 69 | 63 61 00 03 06 47 65 6e |.Helveti|ca...Gen|
|00003a90| 65 76 61 fe 07 d1 0a 44 | 72 61 67 6f 6e 77 69 63 |eva....D|ragonwic|
|00003aa0| 6b 0a 00 16 07 43 6f 75 | 72 69 65 72 00 00 07 43 |k....Cou|rier...C|
|00003ab0| 68 69 63 61 67 6f 00 0e | 07 42 6f 6f 6b 6d 61 6e |hicago..|.Bookman|
|00003ac0| 00 f4 0d 42 61 73 6b 65 | 72 76 69 6c 6c 65 2d 57 |...Baske|rville-W|
|00003ad0| 00 e8 0b 42 61 73 6b 65 | 72 76 69 6c 6c 65 00 c9 |...Baske|rville..|
|00003ae0| 0d 42 61 63 63 68 75 73 | 20 47 72 65 65 6b 00 21 |.Bacchus| Greek.!|
|00003af0| 0b 41 76 61 6e 74 20 47 | 61 72 64 65 32 63 12 41 |.Avant G|arde2c.A|
|00003b00| 70 70 6c 65 47 61 72 61 | 6d 6f 6e 64 20 4c 74 49 |ppleGara|mond LtI|
|00003b10| 74 9a 32 66 10 41 70 70 | 6c 65 47 61 72 61 6d 6f |t.2f.App|leGaramo|
|00003b20| 6e 64 20 4c 74 38 32 64 | 12 41 70 70 6c 65 47 61 |nd Lt82d|.AppleGa|
|00003b30| 72 61 6d 6f 6e 64 20 42 | 6b 49 74 50 32 67 10 41 |ramond B|kItP2g.A|
|00003b40| 70 70 6c 65 47 61 72 61 | 6d 6f 6e 64 20 42 6b 25 |ppleGara|mond Bk%|
|00003b50| 32 65 12 41 70 70 6c 65 | 47 61 72 61 6d 6f 6e 64 |2e.Apple|Garamond|
|00003b60| 20 42 64 49 74 01 32 68 | 10 41 70 70 6c 65 47 61 | BdIt.2h|.AppleGa|
|00003b70| 72 61 6d 6f 6e 64 20 42 | 64 09 12 48 0a 41 6c 65 |ramond B|d..H.Ale|
|00003b80| 78 61 6e 64 72 69 61 90 | 00 00 01 36 00 00 00 00 |xandria.|...6....|
|00003b90| 00 00 00 6e 00 0c 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|00003ba0| 00 00 00 00 00 00 00 00 | 02 2c 00 00 00 00 00 00 |........|.,......|
|00003bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003bc0| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 38 00 00 |........|.....8..|
|00003bd0| 01 00 00 00 00 71 00 00 | 01 00 00 00 00 ff 00 00 |.....q..|........|
|00003be0| 01 00 00 00 01 54 00 00 | 01 00 00 00 01 8c 00 00 |.....T..|........|
|00003bf0| 01 00 00 00 04 63 6f 64 | 65 b9 00 00 00 00 00 00 |.....cod|e.......|
|00003c00| 00 86 00 0c 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c10| 00 00 00 00 00 00 02 1a | 00 00 00 00 00 00 00 00 |........|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 08 00 38 00 00 01 00 |........|...8....|
|00003c40| 00 00 00 63 00 00 01 00 | 00 00 00 8d 00 00 01 00 |...c....|........|
|00003c50| 00 00 00 b8 00 00 01 00 | 00 00 00 e2 00 00 01 00 |........|........|
|00003c60| 00 00 01 1b 00 00 01 00 | 00 00 01 61 00 00 01 00 |........|...a....|
|00003c70| 00 00 01 9a 00 00 01 00 | 00 00 04 6d 6f 70 73 b9 |........|...mops.|
|00003c80| 7f ff ff ff 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c90| 00 00 00 00 00 00 00 00 | 00 00 00 00 01 00 00 00 |........|........|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 78 00 03 | 00 00 00 48 00 48 00 00 |.....x..|...H.H..|
|00003cd0| 00 00 03 0d 02 1a ff e2 | ff e4 03 2b 02 36 03 47 |........|...+.6.G|
|00003ce0| 05 7b 03 de 00 02 00 00 | 00 48 00 48 00 00 00 00 |.{......|.H.H....|
|00003cf0| 03 0d 02 1a 00 01 00 00 | 00 64 00 00 00 01 00 01 |........|.d......|
|00003d00| 01 01 00 02 00 01 27 0f | 00 01 00 01 00 00 00 00 |......'.|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 02 00 19 01 90 00 00 |........|........|
|00003d20| 00 00 00 40 00 00 00 00 | 00 00 00 00 00 01 00 00 |...@....|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 0e 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 a2 00 88 09 01 | 00 00 00 00 00 00 03 0d |........|........|
|00003d60| 02 1a 00 06 00 00 03 07 | 02 1a 00 06 00 00 03 07 |........|........|
|00003d70| 02 1a 00 00 00 00 00 00 | 00 00 00 24 00 00 00 03 |........|...$....|
|00003d80| 00 01 00 00 00 00 00 01 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 01 00 00 00 00 00 00 00 | 00 00 00 00 00 00 3e d8 |........|......>.|
|00003da0| 1f a8 00 00 00 00 00 01 | 00 48 00 48 ff e2 ff e4 |........|.H.H....|
|00003db0| 03 2b 02 36 00 00 01 00 | 00 01 01 0d 01 86 00 41 |.+.6....|.......A|
|00003dc0| 00 0e 01 cc 02 74 00 00 | 00 00 00 07 00 00 00 00 |.....t..|........|
|00003dd0| 00 00 ff ff ff ff 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 03 0d 02 1a 00 00 00 00 | 00 00 00 00 00 01 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 02 3a 00 01 00 00 2b 93 |........|.:....+.|
|00003e00| 00 00 2b 93 00 00 00 00 | 00 00 00 00 00 00 00 00 |..+.....|........|
|00003e10| 00 00 01 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e20| 00 00 00 00 00 01 00 01 | 00 01 00 01 00 00 00 00 |........|........|
|00003e30| 00 00 00 00 ff ff ff ff | ff ff ff ff 00 80 08 08 |........|........|
|00003e40| 00 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e60| 00 00 00 00 00 00 a4 dd | 9d c7 00 00 00 00 00 e8 |........|........|
|00003e70| 00 0c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e80| 00 00 00 01 00 00 00 00 | 00 01 00 00 00 01 00 00 |........|........|
|00003e90| 00 03 00 09 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ea0| 00 00 00 00 00 00 00 00 | 00 00 03 00 00 00 00 00 |........|........|
|00003eb0| 00 00 00 00 00 00 00 9c | 35 00 00 00 01 99 00 00 |........|5.......|
|00003ec0| 01 4e 00 00 00 00 01 4c | 01 99 00 9c 35 6c 00 00 |.N.....L|....5l..|
|00003ed0| 00 01 00 00 00 00 00 00 | 00 00 00 00 00 01 00 00 |........|........|
|00003ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f30| 00 00 00 00 00 00 ff 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f60| 00 00 00 01 00 01 00 01 | 00 01 00 00 00 00 00 00 |........|........|
|00003f70| 00 00 ff ff ff ff ff ff | ff ff 00 01 08 08 00 00 |........|........|
|00003f80| 00 31 00 00 00 00 00 31 | 00 00 00 00 00 ff ff 00 |.1.....1|........|
|00003f90| 00 00 00 05 00 24 00 6c | 00 00 00 0a 00 00 00 00 |.....$.l|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 2e 00 1c 01 c2 |........|........|
|00003fb0| 02 4e 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.N......|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 01 00 | 00 00 0d 34 00 00 0c 34 |........|...4...4|
|00004040| 00 00 01 4e 00 9c 38 78 | 0b c2 00 00 00 1c 01 4e |...N..8x|.......N|
|00004050| 00 0d 76 65 72 73 00 01 | 00 72 53 54 59 4c 00 00 |..vers..|.rSTYL..|
|00004060| 00 8a 53 54 4e 4d 00 00 | 00 96 53 54 52 4c 00 00 |..STNM..|..STRL..|
|00004070| 00 a2 53 54 4e 58 00 00 | 00 ae 52 55 4c 45 00 01 |..STNX..|..RULE..|
|00004080| 00 ba 46 52 4d 54 00 00 | 00 d2 46 54 41 42 00 00 |..FRMT..|..FTAB..|
|00004090| 00 de 50 47 52 41 00 00 | 00 ea 46 4c 53 54 00 00 |..PGRA..|..FLST..|
|000040a0| 00 f6 50 52 45 43 00 00 | 01 02 43 50 52 43 00 00 |..PREC..|..CPRC..|
|000040b0| 01 0e 50 47 4c 59 00 00 | 01 1a 49 4e 46 4f 00 00 |..PGLY..|..INFO..|
|000040c0| 01 26 00 01 ff ff 00 00 | 00 00 00 00 00 00 00 02 |.&......|........|
|000040d0| ff ff 00 00 00 45 00 00 | 00 00 03 eb ff ff 00 00 |.....E..|........|
|000040e0| 00 80 00 00 00 00 03 eb | ff ff 00 00 00 f8 00 00 |........|........|
|000040f0| 00 00 03 eb ff ff 00 00 | 01 0c 00 00 00 00 03 eb |........|........|
|00004100| ff ff 00 00 01 20 00 00 | 00 00 03 eb ff ff 00 00 |..... ..|........|
|00004110| 01 28 00 00 00 00 03 ec | ff ff 00 00 07 88 00 00 |.(......|........|
|00004120| 00 00 03 eb ff ff 00 00 | 03 dc 00 00 00 00 03 eb |........|........|
|00004130| ff ff 00 00 04 3a 00 00 | 00 00 4e 20 ff ff 00 00 |.....:..|..N ....|
|00004140| 05 64 00 00 00 00 03 eb | ff ff 00 00 05 6a 00 00 |.d......|.....j..|
|00004150| 00 00 00 80 ff ff 00 00 | 08 c2 00 00 00 00 00 80 |........|........|
|00004160| ff ff 00 00 09 3e 00 00 | 00 00 00 80 ff ff 00 00 |.....>..|........|
|00004170| 09 50 00 00 00 00 03 eb | ff ff 00 00 09 f6 00 00 |.P......|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+